How Did I Hacked The Dutch Government And Made It Into The Hall Of Fame
The website had a registration route that allowed anyone to create an admin account and log in as an administrator. An attacker could therefore gain administrative access to the site.
Published on infosecwriteups.com
Heyyyy guyss! It’s me Krishnadev P Melevila, It’s been a long time writing in Medium.
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 the registration endpoint for administrators lacked proper access control, allowing any visitor to create an admin account.
Impact
An attacker could register and log in as an administrator, gaining full administrative access to the site.
What the attacker needed
None
The fix
The issue was fixed by removing or restricting the admin registration route, as the page was modified after the patch.
How it was found
- Visit the target website.
- Find the login route for admin or staff.
- Use the admin registration route to create an account.
- Log in as an admin.
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 sign-up page that was meant only for staff, but it was open to anyone. By using that page, a person could create an administrator account and then log in with full admin rights. This is like leaving a spare key to the manager's office on the front desk.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.