Hacked Dutch Government Website. All I got was this l̶o̶u̶s̶y̶ cool T-Shirt.
A publicly reachable Makefile on a Dutch government subdomain exposed sensitive configuration details, and the author also downloaded a database file and other configuration files such as .htaccess and web.config. The text claims this allowed dumping the database, but gives no detail on what data was actually exposed.
Published on medium.com
The Dutch government give away cool T-shirt(swag) for the security researchers who reports vulnerability in their application. I so badly wanted it and started working for it.
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 sensitive build and configuration files were left in the web root and served without access control.
What the attacker needed
Publicly reachable subdomain; sensitive files left in web root
How it was found
- Pick a target domain from a public list of Dutch government domains
- Enumerate subdomains with a subdomain enumeration tool
- Run directory brute forcing against interesting subdomains using a common wordlist
- Add Makefile to the wordlist and request it on the target
- Download the exposed database file and other configuration files such as .htaccess and web.config
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.
Some web servers keep a file called a Makefile, which is a set of build instructions. It can accidentally list internal paths, credentials or database names, and if the server serves it to anyone who asks, that information leaks. Here the author found such a file and also downloaded a database file and server configuration files.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.