-
Notifications
You must be signed in to change notification settings - Fork 22
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
URL with multiple "@" parsed incorrectly #5
Comments
Fixed |
Another bypass with this technique was found: The temporary fix of disabling credentials has now been turned off (but the option is still there), since it was ineffective in some cases. The permanent fix is to URL encode (with Another option would be to remove the fragment all together (since it won't be sent to the server), but there maybe instances of a developer just using the |
And another bypass: The path and query string will also be URL encoded. The query string however will need the following not URL encoded, else it won't be parsed properly by the receiving server:
|
Fixed in a7c3d70 |
This commit breaks an app and then always return a 404. This reverts commit a7c3d70.
Raised by @shDaniell.
A url such as
http://user:pass@safecurl.fin1te.net?@google.com/
is parsed incorrectly.The
parse_url
function in PHP sees the host asgoogle.com
, which is validated. However, cURL usessafecurl.fin1te.net
, thus bypassing the checks.A fix to disable URL credentials will be added to mitigate, until proper URL parsing can be implemented.
The text was updated successfully, but these errors were encountered: