-
Notifications
You must be signed in to change notification settings - Fork 173
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
Provide custom 404 view that doesn't echo path #800
Conversation
👋 deferring to our baseplate SMEs |
I'm not able to push up into this branch but here's the whole diff after the fix and the added test. I've confirmed that the test fails before and passes after
|
We get some bogus bug bounty submissions that talk about HTML injection on our 404 Not Found pages, which are default Pyramid views which echo out the `path` of the Request that isn't found. So you can put some gibberish in there, but it looks real jank and would not be a valid social engineering attack, but it should be simple for us to just default this to be quieter so we don't receive these reports. Ref: https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hooks.html Example: https://ads-api.reddit.com/this_is_a_test_where_i_could_spoof_whatever_i_guess - [x] CI tests (if present) are passing - [x] Adheres to code style for repo - [x] Contributor License Agreement (CLA) completed if not a Reddit employee
62c29d9
to
216ce42
Compare
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.
got the code swapped out and added a test as well. but this is now me approving my own code so it could use another look :)
@ketralnis 's code looks good to me, going to be merging before EOD |
💸 TL;DR
We get some bogus bug bounty submissions that talk about HTML injection on our 404 Not Found pages, which are default Pyramid views which echo out the
path
of the Request that isn't found. So you can put some gibberish in there, but it looks real jank and would not be a valid social engineering attack, but it should be simple for us to just default this to be quieter so we don't receive these reports.Ref: https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hooks.html
📜 Details
Example: https://ads-api.reddit.com/this_is_a_test_where_i_could_spoof_whatever_i_guess
🧪 Testing Steps / Validation
TBD
✅ Checks