CSP? More Like Can’t Stop Payloads — Bypassing CSP to XSS L
A reflected parameter was protected by a CSP that used a static nonce, so an attacker could inject a script tag with that nonce and execute JavaScript. This allowed theft of cookies, tokens and other data, leading to account takeover.
Free Link 🎈
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 CSP used a static nonce that did not change per request, allowing an attacker to reuse it for injected scripts.
Impact
The attacker could steal cookies, JWTs, and other tokens, potentially leading to full account takeover in an enterprise dashboard.
What the attacker needed
Victim clicks a crafted link
The fix
The CSP should use a unique, unpredictable nonce for each response.
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 website can use a security rule called CSP to say which scripts are allowed to run. This site used a fixed password (nonce) for its scripts, so an attacker could reuse that password to run their own script and steal data.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.