Repository navigation
Conversation
`Form` reads the query string on GET and HEAD. On the paste and rendered views that let `?confirm_burn=1` skip the interstitial, so anything that merely follows a URL — an `<img>`, a prefetch, a link unfurler — burnt the paste. On those views and on `/raw` and `/dl` it let `?password=` unlock an encrypted paste, putting the password into browser history, bookmarks, the `Referer` and every proxy log on the way. The interstitial and the password prompt both post, so the views only read a posted form, and the `Password` extractor ignores the query; the `wastebin-password` header remains the way to send a password with a GET. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formreads the query string on GET and HEAD. On the paste and rendered views that let?confirm_burn=1skip the interstitial, so anything that merely follows a URL — an<img>, a prefetch, a link unfurler — burnt the paste. On those views and on/rawand/dlit let?password=unlock an encrypted paste, putting the password into browser history, bookmarks, theRefererand every proxy log on the way.The interstitial and the password prompt both post, so the views only read a posted form, and the
Passwordextractor ignores the query; thewastebin-passwordheader remains the way to send a password with a GET.