How I Discovered the RXSS and Bypassed the WAF
A job search page reflected a user-supplied category value inside an aria-label attribute of an injected anchor tag, allowing HTML attribute injection. By splitting a closing tag across two parameters, the author bypassed a WAF that stripped event handlers and parentheses and achieved reflected cross-site scripting.
medium.com
Published on medium.com
السلا� عليك� 👋 My name is Abdelmonem Reda, a beginner bug hunter 🐞, and this is my first write-up on Medium ✍️. I hope you enjoy reading it 😊
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 run script in a victim's browser through a crafted link, potentially reading cookies, though the text does not show a full account takeover.
What the attacker needed
Victim clicks a crafted link; WAF present but bypassable
How it was found
- Open the job search results page and find the category parameter.
- Inject a double quote and observe the value reflected inside an aria-label attribute of an anchor tag.
- Try an event handler payload and note the WAF blocks event handlers and parentheses.
- Inject a closing anchor tag and observe the WAF removes it.
- Split the closing tag inside the event name and add a second parameter to make the payload work.
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 search page put whatever you typed into the page's HTML code without cleaning it. By typing special characters, an attacker can add their own instructions to the page, so a crafted link can run code in a victim's browser. This is called cross-site scripting, and it lets the attacker act as the logged-in user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.