XSS : A Fight With The WAF
A search parameter was reflected into a meta tag's content attribute without filtering, letting an attacker break out of the attribute and inject markup. The author eventually bypassed the site's WAF and triggered script execution, though the exact payload is not shown.
Published on medium.com
Hi ! My name is Ryan and this article is about a bug I recently discovered in a private program for a well-known billion-dollar company, where an attacker can exploit an XSS vulnerability.
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, though the site's WAF blocked simple payloads and had to be bypassed first.
What the attacker needed
Search input is reflected; WAF bypass needed
How it was found
- Search on the site and confirm the input is reflected on the page.
- Send special characters and check the page source in the developer tools.
- Notice the input is filtered in one place but not in another location shown in the source.
- Use a double quote to close the content attribute and add a test tag.
- Try a basic script payload, which the WAF blocks.
- Find a way to escape an existing tag inside a script tag to run code and bypass the WAF.
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.
A web page sometimes puts what you type into the page itself, for example into a hidden tag. If the site does not clean that text, an attacker can type extra code that the browser then runs as if the site wrote it. This is called cross-site scripting, and it lets an attacker run their own code in a 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.