Reflected XSS in Parser Endpoint — $366 Bounty Earned
The Parser service reflected the error_description query parameter into its HTML response without sanitisation, allowing an attacker to inject and execute arbitrary JavaScript. An attacker could steal session cookies or tokens, phish users, or manipulate the page.
medium.com
Published on medium.com
While testing the Parser service of a SaaS automation platform (example.com), I identified a Reflected Cross-Site Scripting (XSS) vulnerability. The issue was caused by improper handling of the errordescription parameter, which was directly reflected in the HTML response.
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
The application failed to sanitise or encode the error_description parameter before reflecting it into the HTML response.
Impact
An attacker could steal session cookies or tokens, inject malicious scripts to phish users, manipulate the DOM to redirect or mislead users, and potentially chain with CSRF or clickjacking for greater impact.
What the attacker needed
Victim clicks a crafted link
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.
When a website takes text from the URL and puts it directly into the page without cleaning it, an attacker can include code that the browser runs. This is called reflected cross-site scripting (XSS). Here, the error message parameter was not cleaned, so a script could run in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.