]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39603: Prevent header injection in http methods (GH-18485) (#21946)
authorVictor Stinner <vstinner@python.org>
Fri, 4 Sep 2020 00:54:15 +0000 (02:54 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 00:54:15 +0000 (17:54 -0700)
commit524b8de630036a29ca340bc2ae6fd6dc7dda8f40
tree1156d2e4b5e2d429c149fc4da15eab3079288998
parent6c065594c720fdd4783a4284cb9f2eebcb2c10bd
bpo-39603: Prevent header injection in http methods (GH-18485) (#21946)

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]