Uncovering Vulnerabilities: My Discovery of Hashed Passwords on a Dutch Government Website
A publicly reachable endpoint on a Dutch government portal returned a JSON response containing usernames, email addresses and bcrypt-hashed passwords. An attacker could attempt to crack the hashes offline and use the personal data for phishing or targeted attacks.
Published on medium.com
I often explore various websites to understand their security posture. Recently, during a routine analysis, I stumbled upon a vulnerability on a Dutch government website that exposed hashed passwords and other sensitive information.
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 missing access control on an endpoint that returned user records, so anyone who found the URL could read them.
Impact
An attacker could attempt to crack the bcrypt hashes offline and use the exposed usernames and email addresses for phishing or targeted exploitation.
What the attacker needed
No account needed to reach the endpoint; attacker finds the hidden endpoint URL
The fix
The endpoint should be fixed by enforcing access controls so sensitive records are not publicly reachable, and by adding rate limiting.
How it was found
- Gather leads from search engines, code hosting, other subdomains and directory listings.
- Brute-force directories recursively rather than only one level deep.
- Locate an endpoint and request it directly.
- Observe the JSON response containing usernames, emails and hashed passwords.
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 website had a page that anyone could open, and that page handed back a list of user records, including scrambled versions of passwords. Scrambling (hashing) is meant to make passwords unreadable, but if the scrambled values leak, someone can keep guessing passwords offline until a guess matches. The leaked names and email addresses also make convincing phishing emails easier.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.