how i founded my first reflected XSS in public vdp on h1
A reflected XSS vulnerability was found in the 'lang' parameter of a subdomain, where a double quote was reflected without encoding. An attacker could inject attributes to execute JavaScript automatically on page load.
medium.com
Published on medium.com
Hi everyone 👋, I hope you’re having a great day. In this post, I’ll walk through how I discovered a reflected XSS vulnerability on a subdomain — from simple reconnaissance to proof of concept.
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
Impact
An attacker could execute arbitrary JavaScript in a victim's browser when they visit a crafted URL, potentially leading to session hijacking or other client-side attacks.
What the attacker needed
Victim clicks a crafted link
How it was found
- Perform subdomain enumeration to map the attack surface.
- Filter live subdomains and run parameter fuzzing to check for injections.
- Identify a subdomain where the 'lang' parameter reflects a double quote without encoding.
- Inject attributes like onfocus and autofocus to confirm JavaScript execution on page load.
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.
The website took a value from the URL and put it directly into the page without cleaning it. This let the tester add extra code that made the browser run a script. This is called reflected cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.