How I almost made $1000 from XSS bypass attribute
A reflected cross-site scripting vulnerability existed on a subdomain, where a simple SVG payload was blocked but adding an attribute and closing tag bypassed the site's security system. An attacker could execute JavaScript in a victim's browser, as shown by alert pop-ups.
medium.com
Published on medium.com
In this post, I would like to share an interesting experience when I discovered a Cross-Site Scripting (XSS) vulnerability in a site listed on the Bugcrowd program. Although I didn’t get the $1000 bounty as reward because the report was marked as a duplicate, the discovery process was quite interesting and taught me a…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the input filter or web application firewall only blocked a specific simple payload pattern and did not properly sanitise the attribute context, so adding an attribute and closing tag evaded it.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing data such as localStorage, though the text only demonstrates alert pop-ups.
What the attacker needed
Victim visits a crafted URL; vulnerable subdomain in scope
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website lets an attacker sneak JavaScript code into a page that other people view. Here, the site tried to block a simple script but the author found that adding extra text around it made the block fail, so the script ran. That could let an attacker steal data or 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.