Skip to content

Commit 239b2d9

Browse files
ambvdignissimus
andauthored
[3.7] gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94496)
(cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <[email protected]>
1 parent 8a34afd commit 239b2d9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Doc/library/http.server.rst

+12-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This module defines classes for implementing HTTP servers (Web servers).
1919
.. warning::
2020

2121
:mod:`http.server` is not recommended for production. It only implements
22-
basic security checks.
22+
:ref:`basic security checks <http.server-security>`.
2323

2424
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass.
2525
It creates and listens at the HTTP socket, dispatching the requests to a
@@ -470,3 +470,14 @@ the following command uses a specific directory::
470470
the ``--cgi`` option::
471471

472472
python -m http.server --cgi 8000
473+
474+
.. _http.server-security:
475+
476+
Security Considerations
477+
-----------------------
478+
479+
.. index:: pair: http.server; security
480+
481+
:class:`SimpleHTTPRequestHandler` will follow symbolic links when handling
482+
requests, this makes it possible for files outside of the specified directory
483+
to be served.

0 commit comments

Comments
 (0)