Skip to content
XSS Disclosed report Beginner

XSS (Reflected) in aus5.mozilla.org

A reflected cross-site scripting vulnerability was found in a Mozilla update server URL path. An attacker could inject arbitrary JavaScript into the response, which would execute in a victim's browser if they visited a crafted link.

hassham Follow

Originally disclosed on Mozilla

  • Fixed in 12 days
  • Paid in 2 days
  • Disclosed after 12 days
Text
Created attachment 8829095
Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request that, if issued by another applicat

While going thorught the application this url was discovered, further it was tested with Burp Suite and it was discovered that it is possible to set the value of the URL path folder 4 as it  is copied into the HTML document as plain text between tags. The payload zibj5<img src=a onerror=alert(doucment.domain)>q6lli was submitted in the URL path folder 4. 

This input was echoed unmodified in the application's response.  This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The proof-of-concept attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

POC link: https://aus5.mozilla.org/update/3/GMP/50.1.0zibj5%3Cimg%20src%3da%20onerror%3dalert(document.domain)%3Eq6lli/20161208153507/WINNT_x86-msvc-x64/en-US/release/Windows_NT%206.3.0.0%20(x64)/default/default/update.xml

The original report as published on Mozilla's Bugzilla, by Hassham. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 copied a URL path segment into the HTML response without encoding or validating it.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing data or performing actions on their behalf.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Discover the URL with a path segment that is reflected in the response.
  2. Test with Burp Suite to confirm the path segment is copied into the HTML.
  3. Submit a payload containing an image tag with an onerror handler in the URL path.
  4. Observe the input echoed unmodified in the response, executing JavaScript.

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 typed in a link and puts it directly into the page without cleaning it, an attacker can sneak in code that runs in your browser. This is called cross-site scripting (XSS). Here, a part of the web address was copied into the page, so a specially crafted link could run malicious JavaScript on the victim's computer.

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 hassham

View all

3 more disclosed reports, best first.

More from Mozilla

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.