diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-22 22:05:00 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-22 22:05:00 (GMT) |
| commit | 8a34afd55258c721e446d6de4a70353c39a24148 (patch) | |
| tree | 13e01ad5cabed297b6b54bb247ceb44cbbbcc230 /Python/pythonrun.c | |
| parent | 9b13df4d24191ec7a1df7dbc00c2b7d250ca0c1c (diff) | |
| download | cpython-8a34afd55258c721e446d6de4a70353c39a24148.zip cpython-8a34afd55258c721e446d6de4a70353c39a24148.tar.gz cpython-8a34afd55258c721e446d6de4a70353c39a24148.tar.bz2 | |
gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879) (GH-94095)
Fix an open redirection vulnerability in the `http.server` module when
an URI path starts with `//` that could produce a 301 Location header
with a misleading target. Vulnerability discovered, and logic fix
proposed, by Hamza Avvan (@hamzaavvan).
Test and comments authored by Gregory P. Smith [Google].
(cherry picked from commit 4abab6b603dd38bec1168e9a37c40a48ec89508e)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
