forked from adrienverge/openfortivpn
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issues with masking password in debug output
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
924a18b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your quick reply!
This fixes the issue with the password length, but issues with the password being a substring of the request remain: a header log like
User-Agent: Mo*****/5.0
gives a clear hint about what the password is.As you say, however, insufficient masking of passwords in debug logs might not be the most severe of vulnerabilities, and the proper solution would probably require a different signature for
http_send
, such that the exact position of the actual password string could be deduced.924a18b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could write:
instead of:
Otherwise looks good to me.