stored cross site scripting in https://███████
The application was vulnerable to cross-site scripting via a parameter accepting a crafted SVG payload that executed script in a victim's browser. An attacker could steal cookies, make requests as the victim, prompt malware downloads, or deface the site.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 29 days
- Disclosed after 5 months
It was observed that the application is vulnerable to cross-site scripting (XSS). XSS is a type of attack that involves running a malicious scripts on a victim’s browser. poc attached another parameter at #1636345 q_13787 payload: %22%27%3e%3csvg%2fonload%3dconfirm(666)%3e
Impact
Cookie Stealing - A malicious user can steal cookies and use them to gain access to the application. Arbitrary requests - An attacker can use XSS to send requests that appear to be from the victim to the web server. Malware download - XSS can prompt the user to download malware. Since the prompt looks like a legitimate request from the site, the user may be more likely to trust the request and actually install the malware. Defacement - attacker can deface the website usig javascript code.
System Host(s)
█████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
video attached
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 failed to sanitise or encode user input in a parameter before reflecting it into the page, allowing an SVG element with an event handler to execute.
Impact
An attacker could steal cookies to gain access, send requests as the victim, prompt malware downloads, or deface the website.
What the attacker needed
Victim's browser executes the crafted payload
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 displays user-supplied content without properly cleaning it, so an attacker can sneak in code that runs in other visitors' browsers. Here the attacker put a crafted SVG payload into a parameter, and the browser ran the attacker's script. That script could then act as the victim, for example by reading their cookies or making requests on their behalf.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.