[3.5] bpo-39603: Prevent header injection in http methods (GH-18485)#21946
Merged
larryhastings merged 1 commit intopython:3.5from Sep 4, 2020
vstinner:fix_http_method_35
Merged
[3.5] bpo-39603: Prevent header injection in http methods (GH-18485)#21946larryhastings merged 1 commit intopython:3.5from vstinner:fix_http_method_35
larryhastings merged 1 commit intopython:3.5from
vstinner:fix_http_method_35
Conversation
Member
Author
|
Notes on the backport:
|
alex
approved these changes
Aug 24, 2020
Member
Author
|
@larryhastings: The CI passed and 3 core dev approved the PR. Would you mind to merge it? |
|
@larryhastings: Please replace |
Contributor
|
Thanks for the backport! This miiiiight be the last checkin for 3.5 ever... we'll see! |
encukou
pushed a commit
to encukou/cpython
that referenced
this pull request
Sep 30, 2020
00354 # Reject control chars in HTTP method in httplib.putrequest to prevent HTTP header injection Backported from Python 3.5-3.10 (and adjusted for py2's single-module httplib): - https://bugs.python.org/issue39603 - python#18485 (3.10) - python#21946 (3.5) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
hroncok
pushed a commit
to fedora-python/cpython
that referenced
this pull request
Apr 19, 2021
00354 # Reject control chars in HTTP method in httplib.putrequest to prevent HTTP header injection Backported from Python 3.5-3.10 (and adjusted for py2's single-module httplib): - https://bugs.python.org/issue39603 - python#18485 (3.10) - python#21946 (3.5) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
hroncok
pushed a commit
to fedora-python/cpython
that referenced
this pull request
May 19, 2021
00354 # Reject control chars in HTTP method in httplib.putrequest to prevent HTTP header injection Backported from Python 3.5-3.10 (and adjusted for py2's single-module httplib): - https://bugs.python.org/issue39603 - python#18485 (3.10) - python#21946 (3.5) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
stratakis
pushed a commit
to stratakis/cpython
that referenced
this pull request
Jul 18, 2022
00354 # Reject control chars in HTTP method in httplib.putrequest to prevent HTTP header injection Backported from Python 3.5-3.10 (and adjusted for py2's single-module httplib): - https://bugs.python.org/issue39603 - python#18485 (3.10) - python#21946 (3.5) Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e)
https://bugs.python.org/issue39603