File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ This module defines classes for implementing HTTP servers.
2020.. warning ::
2121
2222 :mod: `http.server ` is not recommended for production. It only implements
23- basic security checks.
23+ :ref: ` basic security checks < http.server-security >` .
2424
2525One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
2626It creates and listens at the HTTP socket, dispatching the requests to a
@@ -499,3 +499,14 @@ following command runs an HTTP/1.1 conformant server::
499499the ``--cgi `` option::
500500
501501 python -m http.server --cgi
502+
503+ .. _http.server-security :
504+
505+ Security Considerations
506+ -----------------------
507+
508+ .. index :: pair: http.server; security
509+
510+ :class: `SimpleHTTPRequestHandler ` will follow symbolic links when handling
511+ requests, this makes it possible for files outside of the specified directory
512+ to be served.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The following modules have specific security considerations:
1414 argument disabling known insecure and blocked algorithms
1515 <hashlib-usedforsecurity>`
1616* :mod: `http.server ` is not suitable for production use, only implementing
17- basic security checks
17+ basic security checks. See the :ref: ` security considerations < http.server-security >`.
1818* :mod: `logging `: :ref: `Logging configuration uses eval()
1919 <logging-eval-security>`
2020* :mod: `multiprocessing `: :ref: `Connection.recv() uses pickle
You can’t perform that action at this time.
0 commit comments