]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39603: Prevent header injection in http methods (GH-18485) (GH-21539)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Jul 2020 09:28:45 +0000 (02:28 -0700)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2020 09:28:45 +0000 (05:28 -0400)
commitf02de961b9f19a5db0ead56305fe0057a78787ae
tree50d02297608246580a31ee391e461b3f40af902c
parent47a2955589bdb1a114d271496ff803ad73f954b8
bpo-39603: Prevent header injection in http methods (GH-18485) (GH-21539)

reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb068863c1138f07e3098478ef8be12e)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
Lib/http/client.py
Lib/test/test_httplib.py
Misc/NEWS.d/next/Security/2020-02-12-14-17-39.bpo-39603.Gt3RSg.rst [new file with mode: 0644]