Reflected Cross-Site Scripting (XSS)
A reflected cross-site scripting flaw allowed an attacker to inject an SVG element with an onload handler into a crafted URL, which executed JavaScript in the victim's browser. This could let an attacker steal session cookies, perform phishing or redirects, and act as the victim user.
Originally disclosed on HackerOne
- Triaged in 42 hours
- Fixed in 16 days
- Disclosed after 5 months
By visiting the following crafted URL, an attacker can trigger a JavaScript alert() function, confirming the vulnerability:
███
Decoded payload (for analysis clarity):
████████"document.cookie")>
This payload injects an SVG tag with a malicious onload handler that executes JavaScript.
Impact
Successful exploitation of this issue allows an attacker to: Execute arbitrary JavaScript in the victim's browser. Steal session cookies. Perform phishing attacks or redirect users. Interact with the web application as the victim user (session hijacking). This vulnerability does not require authentication and can be exploited by tricking a user into clicking a malicious link (e.g., in an email or chat message).
System Host(s)
████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
poc:
██████
Suggested Mitigation/Remediation Actions
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 user-controlled input from the URL into the page without proper output encoding or sanitisation, allowing an SVG onload handler to execute.
Impact
An attacker could execute arbitrary JavaScript in the victim's browser, steal session cookies, perform phishing or redirects, and interact with the application as the victim; no authentication is required, only that the victim clicks a link.
What the attacker needed
Victim clicks a crafted link; no authentication needed
How it was found
- Craft a URL containing an SVG element with an onload handler that runs JavaScript.
- Send the crafted URL to a victim, for example by email or chat.
- The victim opens the link and the JavaScript executes 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.
Cross-site scripting (XSS) is when a website takes something from a link or form and puts it into the page without cleaning it, so an attacker can sneak in their own code. Here the attacker put a small piece of code inside a link, and when a victim opens that link the code runs in their browser. That code can read the victim's cookies, which are like a temporary login badge, and use them to act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.