-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links #94416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this!
The current wording would suggest that following symlinks is the main (or even the only) security consideration of http.server
which is far from the truth.
Instead of putting this information right in the "Warning" bar at the top, please create a "Security Considerations" section on the bottom of this page (http.server.rst
). You can put your information there and we can later expand on it as needed.
Then you can link the word "security" in the "Warning" box to the new section, but more importantly you can put the new section here:
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
…on the main security considerations page.
Thanks @dignissimus for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8, 3.9, 3.10, 3.11. |
…ic links (pythonGH-94416) (cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
GH-94492 is a backport of this pull request to the 3.11 branch. |
…ic links (pythonGH-94416) (cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
GH-94493 is a backport of this pull request to the 3.10 branch. |
…ic links (pythonGH-94416) (cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Sorry, @dignissimus and @ambv, I could not cleanly backport this to |
Sorry @dignissimus and @ambv, I had trouble checking out the |
GH-94494 is a backport of this pull request to the 3.9 branch. |
…symbolic links (pythonGH-94416) (cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
GH-94495 is a backport of this pull request to the 3.8 branch. |
…symbolic links (pythonGH-94416) (cherry picked from commit 80aaeab) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
GH-94496 is a backport of this pull request to the 3.7 branch. |
Oh, thank you that clarifying this in the documentation! That's helpful. |
Documents that
SimpleHTTPRequestHandler
follows symbolic links when handling requests and explains the security implications.Resolves #81054