Legal | Application is Missing CSP(Content Security Policy) Header
The application did not send a Content Security Policy header, so the browser had no restriction on which external origins could supply content. The reporter showed that an image hosted on a third-party domain could be loaded into the page, but did not demonstrate script execution or any other concrete impact.
- Triaged in under an hour
- Fixed in 22 hours
- Paid in 22 hours
- Disclosed after 4 days
-Content Security Policy Header used to allow only source code to execute in the application from the domain mentioned in its list. By using this we can restrict code to execute which is written in application either by developer or by Hacker
-Since application contains no such header i am going to inject an image from third party domain which is not of application domain
third party domain https://s-media-cache-ak0.pinimg.com/564x/ab/2d/bd/ab2dbda0c6c11455527c0dd34d5f5bf6.jpg
Refer-https://www.owasp.org/index.php/Content_Security_Policy_Cheat_Sheet
Attachments
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
Root cause
Likely the server never sent a Content-Security-Policy response header, leaving the browser with no origin allowlist for page resources.
Impact
The missing header means the browser will not restrict resource origins, but the report only shows an external image loading and does not demonstrate script execution or data theft.
What the attacker needed
Ability to inject an image into the page
The fix
The application should send a Content-Security-Policy header that lists only trusted origins for scripts, images and other resources.
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 is a set of instructions a website sends to the browser saying which places content may come from. Without it, the browser will happily load images, scripts and styles from any other site. Here the site had no such instructions, so the reporter could make the page pull in a picture from an unrelated site, but that alone does not let an attacker do anything harmful.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.