RXSS on ██████ via customerId parameter
The customerId parameter on the Mars website was reflected into the HTTP response without adequate sanitisation, allowing an attacker to inject JavaScript. An attacker could craft a malicious URL that executes script in a victim's browser when opened.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 57 days
- Disclosed after 3 months
Summary by the program
A Reflected Cross-Site Scripting (XSS) vulnerability is identified on the Mars website at ██████. The vulnerability is located in the customerId parameter which is inadequately sanitized before being reflected back to users in the HTTP response. When the parameter is manipulated with malicious JavaScript code, the injected script is executed in the context of the user's browser. Specifically, the vulnerability can be exploited by utilizing the oncontentvisibilityautostatechange event attribute which is not properly filtered or encoded by the application. This security flaw allows an attacker to craft malicious URLs containing JavaScript payloads that execute when accessed by victims. The vulnerability was confirmed to be exploitable in Chrome browser but not in Firefox, suggesting possible browser-specific filter bypasses are being utilized.
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 reflected the customerId parameter into the response without output encoding, and its input filtering did not cover the oncontentvisibilityautostatechange event attribute.
Impact
An attacker could execute script in a victim's browser via a crafted link, though the exploit worked in Chrome and not in Firefox.
What the attacker needed
Victim opens a crafted link; Chrome browser (confirmed working; Firefox not)
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 reflected cross-site scripting (XSS) bug means a website takes something from the URL and puts it straight into the page without cleaning it. If that something is code, the browser runs it as if the website itself had written it. Here the customerId value in the address was the unsafe input.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.