Skip to content
RCE Write-up Intermediate

Dutch T Shirts For Dutch Hacks A Tale Of Four Vulnerabilities

The author found four vulnerabilities in Dutch government systems: two OS command injections in CGI scripts, a reflected XSS, and an exposed Google Maps API key. An attacker could execute commands on the server, run script in a victim's browser, or abuse the API key for geocoding and streetview services.

Jeewan Bhatta Follow

Published on infosecwriteups.com

In an increasingly interconnected world, cybersecurity remains a paramount concern for governments, organizations, and individuals. This report delves into a journey of discovery, where I stumbled upon four vulnerabilities within Dutch systems.

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

Root cause

Likely, user input was passed unsafely to system commands in CGI scripts, reflected without encoding in a web page, and an API key was left in client-side code.

Impact

An attacker could execute arbitrary OS commands on the server, run script in a victim's browser, and abuse the API key for geocoding and streetview services.

What the attacker needed

None for command injection; victim clicks a crafted link for XSS; none for API key exposure

How it was found

  1. Probe live subdomains using httpx and manually test features with Burp Suite.
  2. In the climate explorer tool, try XSS and SQL injection payloads, then test command injection with a payload that reads a system file.
  3. Confirm full command injection by using a payload that causes a time delay.
  4. Find another .cgi endpoint via Waybackurl and repeat the command injection payload.
  5. On a different target, find a URL with an 'object' parameter that reflects input, and test XSS payloads until an alert pops up.
  6. While browsing another target, notice a Trufflehog alert for a Google Maps API key, then check its validity using keyhacks.

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.

This is a write-up of four separate security bugs found on Dutch websites. Two let an attacker run system commands on the server, one let an attacker run JavaScript in a visitor's browser, and one exposed a Google Maps API key that could be misused. The author reported each and received a T-shirt as a reward.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Jeewan Bhatta

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.