Skip to content
XSS Write-up Intermediate

My story of hacking Dutch Government | by Chinmaya Rana

A reflected cross-site scripting vulnerability was found in a parameter that was reflected inside an anchor tag. An attacker could execute arbitrary JavaScript in a victim's browser by crafting a malicious URL.

medium.com

Published on medium.com

Today, I want to share a story that feels almost unreal — how I successfully hacked the Dutch Tax Administration and earned a spot in their Hall of Fame! What started as a simple hope of winning a ‘lousy’ T-shirt turned into an unforgettable journey.

Chinmaya Rana, on medium.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 execute arbitrary JavaScript in a victim's browser when the victim visits a crafted URL and hovers over the injected element, potentially leading to session hijacking or other client-side attacks.

What the attacker needed

Victim clicks a link; victim hovers over element

The fix

The issue was fixed by the organisation after the report.

How it was found

  1. Gather subdomains and filter live ones by technology stack.
  2. Collect URLs with parameters from various sources.
  3. Test parameters for reflection using automated and manual tools.
  4. Identify a parameter that reflects double quotes inside an anchor tag.
  5. Craft a payload that injects a style attribute and an onmouseover event handler.
  6. Trigger the XSS by hovering over the injected element.

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.

Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, a search parameter was placed inside a link, and by adding extra attributes the attacker could make the link run code when the mouse moved over it. This could let an attacker steal cookies or do things as the victim.

What is XSS?

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

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.