Blob URLs do not inherit CSP from originating page
A page that creates a Blob URL does not pass its Content Security Policy (CSP) to that Blob URL. An attacker could open the Blob URL directly and run scripts that the original page's CSP would have blocked.
- Paid in 5.5 years
- Disclosed after under an hour
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Steps to reproduce:
1. Go to https://vuln.shhnjk.com/blob_csp.html
2. Copy Blob URL and paste it into address bar
3. Press enter
Actual results:
CSP is bypassed.
Expected results:
https://github.com/w3c/FileAPI/issues/142
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Victim opens a Blob URL directly
How it was found
- Open the test page that creates a Blob URL.
- Copy the Blob URL.
- Paste the Blob URL into the address bar and press enter.
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 report has not been written yet. The Original tab links to the source.
A Content Security Policy (CSP) is a rule set a website sends to your browser to limit what scripts can run. A Blob URL is a temporary address for data created by a page. This report says that when you open the Blob URL directly, the browser forgets the original page's CSP rules, so scripts that should be blocked can run.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.