-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer overflow in password when many special chars #826
Comments
Which version of openfortivpn? |
1.15.0 |
The length of the password buffer when read from stdin - The next question is how the password is sent to the FortiGate. I understand Ah, I may have something here: I recommend we revert #361 and choose a static but decent size for passwords - such as 4096. How does a password maximum length of 4096 sound? |
The password maximum length might be 128, at least in some cases:
I haven't ever configured a FortiGate, so I have no idea when and how this limit is applied. It might not apply if the password is defined elsewhere, for example in an ActiveDirectory domain. @disk91 @mrbaseman Any clue about the maximum permitted size of passwords? |
The 128 maximum size may apply to admin passwords only: |
On the other hand RADIUS/LDAP server domain name are limited to 63 characters: Therefore, I will limit the size of |
The logon name - Recent versions of Active Directory can use unlimited logon names (using the On the other hand the Windows Username itself is limited to 256 characters: I believe we can keep the current value of |
The maximum password length in Active Directory appears to be 256 - even though the GUI for end-users shows only 127 of the characters! I suggest we limit the size of |
I've been facing an issue with a long password (256 char) containing many special chars.
Apparently the HTTP request is truncated when the url encoded password is too large..
Here is the debug log with a bit shorter password
Here is the result with a full length password:
Changing the password for the same length with less special characters works.
Official Forti client works with initial password / login on the webpage is also working.
The text was updated successfully, but these errors were encountered: