Reflected XSS at /category/ on a Atavis theme
A reflected cross-site scripting flaw existed on the /category/ endpoint of two Atavist sites, where a crafted URL caused an SVG element with an onload handler to execute. An attacker could use this to steal cookies from a victim who clicked a malicious link.
- Triaged in 21 days
- Fixed in 36 days
- Paid in 21 days
- Disclosed after 3 months
Summary:
Hi team,
This report is similar to #947790
You fixed the XSS on search, but I found another XSS at /category/xsspayload
For PoC you can check these URLs : https://magazine.atavist.com/category/%22%3E%3Csvg%20onload%3Dalert%60XSS%60%3E https://docs.atavist.com/category/%22%3E%3Csvg%20onload%3Dalert%60XSS%60%3E
You can encode " ' < > characters with HTML encoding in this endpoint.
Impact
Reflected XSS - cookie stealing
Thanks, Bugra
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 /category/ endpoint reflected user input into the HTML response without proper output encoding, allowing HTML tags and event handlers to be injected.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open one of the provided URLs containing the crafted category value.
- Observe the SVG onload handler executing in the 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 text from a URL and puts it into the page without cleaning it, so an attacker can make the page run their own small program. Here, a link containing a specially crafted category name made the page run a script that shows an alert box. Because the script runs in the victim's browser, it could also read their cookies, which are small pieces of data that keep them logged in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.