Content injection via URL parameter.
The schema parameter in a URL is reflected into the page without proper sanitisation, allowing an attacker to inject HTML and JavaScript. This could let an attacker execute arbitrary script in a victim's browser or reveal PHP source code through error messages.
- Disclosed after 2.4 years
Hello,
The following URL is vulnerable to content & code injection.
https://labs.data.gov/dashboard/validate
The schema parameter in the above URL is vulnerable to injection.
Example...
Also injecting something like revels PHP source error msg....
The schema parameter in the URL should be further sanitised from characters like " < > /.
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 application reflects the schema parameter into the HTML output without encoding or validating it.
What the attacker needed
Victim clicks a crafted link
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.
The 'schema' parameter is not sanitised, so an attacker can add HTML tags or JavaScript to a crafted link. This is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.