]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 May 2023 10:39:50 +0000 (03:39 -0700)
committerGitHub <noreply@github.com>
Mon, 22 May 2023 10:39:50 +0000 (12:39 +0200)
commit2062fce6e18caf589851f7c9ff8963cf2d48ac6b
treed891875a06d0215984397617427e906d6b1f7602
parent47ec96a11e3a208c89f025c97fa149201e56aaf0
[3.8] gh-104049: do not expose on-disk location from SimpleHTTPRequestHandler (GH-104067) (#104121)

Do not expose the local server's on-disk location from `SimpleHTTPRequestHandler` when generating a directory index. (unnecessary information disclosure)

(cherry picked from commit c7c3a60c88de61a79ded9fdaf6bc6a29da4efb9a)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Security/2023-05-01-15-03-25.gh-issue-104049.b01Y3g.rst [new file with mode: 0644]