Burp Suite said “Critical”, Chrome said “Nope”: My ~$1,000 Mistake
A search parameter reflected a script payload without encoding, but a strict Content Security Policy blocked inline script execution in the browser. The attacker could not demonstrate exploitation, so the finding was closed as informative or mitigated.
Published on medium.com
It was a late-night session on a legacy fintech target. I tossed a standard polyglot payload into a search parameter, not expecting much.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application reflected user input without encoding, but a Content Security Policy header blocked inline script execution.
Impact
The reflected XSS could not be exploited because the Content Security Policy blocked inline script execution, so the report was closed as informative or mitigated.
What the attacker needed
Victim clicks a crafted link
How it was found
- Send a polyglot payload in a search parameter.
- Observe the payload reflected unencoded in the HTTP response.
- Open the resulting URL in Chrome to record a proof of concept.
- See that no alert appears and the script is blocked.
- Check the browser console and find a Content Security Policy error.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A reflected cross-site scripting (XSS) bug happens when a website echoes back text you typed, and that text can include code the browser runs. Here, the site did echo back a script, but a security rule called Content Security Policy told the browser to ignore inline scripts, so the attack did not work.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.