Skip to content
XSS Disclosed report Beginner CVE-2018-1000129

[ 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.

todayisnew- Follow

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.

The original report as published on HackerOne, by todayisnew-. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Craft a URL containing an SVG element with an onload handler in the path.
  2. Append a query parameter setting mimeType to text/html.
  3. 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.

More by todayisnew-

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.