Skip to content
XSS Write-up Beginner

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.

Jeewan Bhatta Follow

Published on infosecwriteups.com

Greetings Everyone. Hope you’re all doing well.

Jeewan Bhatta, on infosecwriteups.com

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

  1. Enumerate subdomains and probe which ones are live
  2. Review archived URLs to find parameters worth testing
  3. Test the publication category parameter and observe that HTML is reflected unescaped
  4. Try a simple script payload and see the firewall strip it
  5. 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.

More by Jeewan Bhatta

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.