File tree 2 files changed +13
-2
lines changed
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.
20
20
.. warning ::
21
21
22
22
:mod: `http.server ` is not recommended for production. It only implements
23
- basic security checks.
23
+ :ref: ` basic security checks < http.server-security >` .
24
24
25
25
One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
26
26
It 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::
499
499
the ``--cgi `` option::
500
500
501
501
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:
14
14
argument disabling known insecure and blocked algorithms
15
15
<hashlib-usedforsecurity>`
16
16
* :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 >`.
18
18
* :mod: `logging `: :ref: `Logging configuration uses eval()
19
19
<logging-eval-security>`
20
20
* :mod: `multiprocessing `: :ref: `Connection.recv() uses pickle
You can’t perform that action at this time.
0 commit comments