-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Special characters in URI corrupt request object #2751
Comments
Although special characters are expected to be encoded in a valid URI, nothing prevents sending (malicious) requests with raw data. Moreover, the industry standard technologies all support special characters in URI, namely, Nginx and PHP-FPM both parse the requests successfully. |
Note that Swoole does support special characters in request headers. The problem is only with URI. Headers are shown to demonstrate that special characters in URI also prevent headers parsing. |
Swoole use http_parser, it's probably a bug of http_parser |
@twose |
- Remove strict validation of URI path characters - Resolve swoole#2751 Special characters in URI corrupt request object
@twose |
- Remove strict validation of URI path characters - Resolve swoole#2751 Special characters in URI corrupt request object
From twosee: According to the HTTP specification, special characters in URIs should be encoded |
Preconditions:
Steps to reproduce:
Expected result:
Actual result:
request_uri
,path_info
,headers
and protocol HTTP/1.0 instead of HTTP/1.1.The text was updated successfully, but these errors were encountered: