[ CVE-2018-1000129 ] RXSS At `https://███████` via the URI
The application reflected unsanitised user input from the URI path into an HTML response, allowing an attacker to inject an SVG element with an onload handler. An attacker could execute arbitrary JavaScript in a victim's browser to steal cookies, hijack sessions, or perform other malicious actions.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 6 days
- Disclosed after 2 months
Hi DOD Team,
System Host(s)
████████
CVE Numbers:
-
CVE-2018-1000129
POC:
-
https://█████%3Csvg%20onload=alert%28'1337'%29%3E?mimeType=text/html
-
https://██████████%3Csvg%20onload=alert%28document.domain%29%3E?mimeType=text/html
-
https://████████%3Csvg%20onload=alert%28document.cookie%29%3E?mimeType=text/html
-
████
Impact
Attackers can execute scripts in a victim’s browser to steal the user's cookies, hijack user sessions, deface websites, insert hostile content, redirect users, hijack the user’s browser using malware, etc...
Thanks.
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
Impact
An attacker could execute scripts in a victim’s browser to steal cookies, hijack sessions, deface websites, insert hostile content, redirect users, or hijack the browser using malware.
What the attacker needed
Victim visits a crafted URL
How it was found
- Craft a URL containing an SVG element with an onload handler in the path.
- Append a query parameter setting mimeType to text/html.
- A victim visiting the crafted URL triggers script execution in their browser.
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.
When a website takes something you type into the address bar and puts it directly into the page without cleaning it first, an attacker can sneak in code that the browser runs. Here the attacker put a special image tag with a script into the URL, and the page displayed it as if it were part of the site. This lets the attacker run their own code in the victim's browser, which can steal login cookies or do other harmful things.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.