Inject, Exploit, Repeat: Real-World Adventures in XSS
A reflected cross-site scripting flaw was found in a chat prompt feature, and the author claims to have broken the cache to affect every visitor. An attacker could execute script in victims' browsers, potentially stealing cookies or showing fake login prompts.
You know the kind — when you’re staring at the screen, bugs are nowhere to be found, and the recon tools have gone silent. I was tired.
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 chat prompt input was reflected into the page without proper output encoding, and the response was cached in a way that served the injected content to other users.
Impact
The author claims every visitor to the endpoint could have their session fingerprinted, be redirected, have cookies scraped if vulnerable, see fake login prompts, or receive malicious files, though no proof of these beyond the alert is shown.
What the attacker needed
A hidden subdomain with a chat feature; victim visits the vulnerable endpoint
How it was found
- Find a hidden subdomain hosting a chat prompt page.
- Submit an XSS payload into the chat input.
- Observe the payload reflected and executed as an alert.
- Investigate caching behaviour of the prompt responses.
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 takes text you type and puts it into the page without cleaning it, so the browser runs it as code. Here, a chat box echoed the input back as live script, so a crafted message could run code in other people's browsers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.