-
Notifications
You must be signed in to change notification settings - Fork 178
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
HTTP Response Splitting - Status/Header Names #122
Comments
I used |
I think PR #124 should cover it. |
Check header names and status for line feed/carriage return. Fixes #122
For the status line, mod_wsgi is probably relying on Apache rejecting it. If Apache isn't failing it in some way I should add a check. There should already be checks in mod_wsgi for HTTP header names and values. |
Nope, mod_wsgi has: so it should be validating the status line and rejecting he presence of any control characters. I should check that works. :-) |
#117 was about HTTP response splitting in header values. Should this also cover the status line and the header names? The same thing can happen with those.
All of these examples are on waitress 0.9.0b0:
Here's an app that uses a bad status line:
And the output of connecting to it:
And here's one that uses a bad header name:
And its output, which hangs the client until a timeout, leaving a dangling socket:
I realize that HTTP status messages and header names are probably less likely to allow user input than header values, but if they do, bad things can still happen.
The text was updated successfully, but these errors were encountered: