A Hardcore XSS
The report describes a reflected XSS vulnerability where a single quote in a URL parameter is not filtered, allowing an attacker to break out of a JavaScript string context and execute arbitrary script. The author demonstrates multiple payload variants that exploit browser decoding of HTML entities and URL encoding to achieve the same effect.
Published on respectxss.blogspot.com
The original lives on respectxss.blogspot.com
We do not hold its text, 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 application fails to properly escape or encode user input before inserting it into a JavaScript context, specifically not filtering single quotes.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or other client-side attacks.
What the attacker needed
Victim clicks a crafted link
The fix
The fix should involve proper escaping order: JavaScript escaping, then URL percent encoding, then HTML escaping, as described in the referenced write-up.
How it was found
- Open the URL with a harmless probe string in the path.
- Observe that the single quote is reflected without encoding.
- Inject a payload that breaks out of the JavaScript string and calls a function.
- Alternatively, use HTML entity or URL encoding to bypass filters and achieve the same execution.
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.
This is a cross-site scripting (XSS) bug. The website takes a piece of text from the web address and puts it directly into a script without cleaning it. An attacker can craft a link that, when clicked, runs their own JavaScript in the victim's browser, potentially stealing data or performing actions as the user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.