-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
gh-142533: Document CRLF injection vulnerability in http.server and wsgiref modules #143395
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
Changes from 5 commits
b1edcf8
39c5198
2751d9b
d88da64
57ff6a9
0be4e58
3f8dd05
eb4fbfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,6 +265,7 @@ manipulation of WSGI response headers using a mapping-like interface. | |
|
|
||
| Content-Disposition: attachment; filename="bud.gif" | ||
|
|
||
| This method does not reject input containing CRLF sequences. | ||
|
||
|
|
||
| .. versionchanged:: 3.5 | ||
| *headers* parameter is optional. | ||
|
|
@@ -899,3 +900,12 @@ directory and port number (default: 8000) on the command line:: | |
| httpd.server_close() | ||
|
|
||
|
|
||
| .. _wsgiref-security: | ||
|
|
||
| Security considerations | ||
| ----------------------- | ||
|
||
|
|
||
| The :class:`wsgiref.headers.Headers` class assumes sanitized input for header | ||
| names and values and does not perform input validation such as checking for the | ||
| presence of CRLF sequences. Untrusted input may result in CRLF injection | ||
| attacks. | ||
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.
and
send_response_only()