How I Stumbled Upon An Xss In Dutch Tax Administration System
A search parameter on a Dutch Tax Administration subdomain reflected user input into the page without sanitising HTML tags. An attacker could craft a link that runs script in a victim's browser, though a web application firewall blocked the first attempt and had to be bypassed with double URL encoding.
Published on infosecwriteups.com
Greetings Everyone. Hope you’re all doing well.
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 get script to run in a victim's browser via a crafted link, but only after bypassing the web application firewall with double encoding.
What the attacker needed
Victim clicks a crafted link; web application firewall bypass needed
The fix
The issue was fixed by the security team after the report was submitted.
How it was found
- Enumerate subdomains and probe which ones are live
- Review archived URLs to find parameters worth testing
- Test the publication category parameter and observe that HTML is reflected unescaped
- Try a simple script payload and see the firewall strip it
- Retry with a double URL encoded payload and see the popup fire
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 reflected cross-site scripting (XSS) bug means a website takes something from the address bar and puts it straight into the page without cleaning it. If that something is code, the browser runs it as if the site itself wrote it, so an attacker can make a link that does things in a visitor's session. Here a filter (a web application firewall, a security layer that inspects requests) blocked the simple attempt, but encoding the characters twice slipped past it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.