Cracking the Armour: Bypassed WAF using Ibrahimxss Tool for easy
A product category page reflected a URL parameter into a textarea without proper sanitisation, allowing script execution in the victim's browser. An attacker could use this to run code in a logged-in user's session and read their cookies.
Published on medium.com
I was browsing the internet when I stumbled upon (redacted.com), a seemingly innocuous site with a reputation for being secure. But, I couldn’t resist the urge to test its defenses.
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 id parameter was written into a textarea without encoding, so a crafted value could close the textarea and inject an image tag with an event handler.
Impact
Script could run in a victim's browser and read their cookies, though Cloudflare blocked the author's manual attempts and only the tool's payload got through.
What the attacker needed
Victim opens a crafted link
The fix
The vulnerability was fixed after the report, according to the author.
How it was found
- Find the product category page and its id parameter.
- Try payloads against the parameter, which Cloudflare blocked.
- Feed the endpoint to the Ibrahimxss tool, which produced a working payload.
- Report the finding to the site's security team.
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.
Some web pages take a value from the address bar and paste it into the page. If they do not clean that value first, an attacker can put code in the link so the page runs it. That lets the attacker act as the victim, for example by reading their login cookie.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.