Hacking Dutch Government-Broken Authentication To Full Website Takeover (P1)
The website's admin panel allowed anyone to sign up and then log in with the new account, granting full admin access to the CMS. An attacker could take over the website.
Today i’m gonna share my experience on hacking dutch government website.
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.
Context
This is a write-up of a bug bounty finding against a Dutch Government website, published by the researcher V1dr4X. The target was one of the hosts listed in a public GitHub gist that collects scopes and active hosts for Dutch Government websites; the researcher describes that gist as containing 1500+ scopes and active hosts. The affected site was a blog-style, responsive website that the researcher describes as looking somewhat old.
The feature at the centre of the report is the site's content management system. The site exposes an admin panel that asks the visitor to log in with Netlify, and the login page also offers a sign-up option. The report does not name the host, the CMS product or the Netlify configuration involved.
Setup
No special tooling, accounts or versions are described. The researcher worked from the public scope list and picked websites at random. The only account used was one the researcher created on the target itself, with their own email address and a password of their choosing. No credentials, roles or preconditions beyond access to the public site are mentioned.
Finding it
The researcher's stated motivation was a T-shirt: a post on Twitter by someone who had hacked a Dutch Government site and shown the swag, with the word "government" in the quote line. After looking up the scope and resources, the researcher ended up at the GitHub gist of Dutch Government hosts and began testing.
Because the scope was large, the approach was to select 10 websites at random and work through them. The first 5 produced nothing. After a while the researcher found an interesting one: a normal responsive website that looked somewhat old at first glance. The researcher started testing its features, identified it as a kind of blog website, and then searched for hidden directories. That search turned up an admin panel.
The admin panel asked the visitor to log in with Netlify, which the researcher describes as finally finding a login page. The login page was, in the researcher's words, more interesting than the others, because it also offered a sign-up option. The researcher notes being familiar with this kind of situation from CTFs.
Exploitation
Step 1: Create an account on the login page
The researcher signed up on the site's own sign-up form using their email address and a password. The report does not show the request or the response for the sign-up.
Step 2: Log in with the newly created account
With the account created, the researcher tried to log in again using the same email address and password that had just been registered. The login succeeded, and the researcher was in the CMS with full admin access control over the webpage.
Step 3: Report
The researcher quickly made a proof of concept and reported it to the Dutch Government. After 10 days the report was confirmed and the bug was fixed. The researcher was offered a T-shirt.
Root cause
What it shows is that a registration flow on the login page created an account which, once used to log in, carried full admin access to the CMS. In other words, the sign-up path and the administrative login path were not separated: an account created through self-registration was treated as an administrator. Whether this came from a misconfigured identity provider, a default role assigned to new users, or an authorisation check that never ran is not stated in the report, so any specific mechanism would be speculation.
Impact
Under the conditions shown, anyone who could reach the login page and complete the sign-up could obtain full admin control over the website's CMS. The researcher demonstrated this with an account created from their own email address and password.
Fix
The report states only that the Dutch Government confirmed the bug and fixed it within 10 days. A reasonable fix would be to stop self-registration from producing accounts with administrative privileges, for example by removing the sign-up option from the admin login, assigning new accounts a non-privileged role, and enforcing an authorisation check on admin actions rather than relying on authentication alone. The report does not confirm which of these was applied.
Variants to test
- Look for admin panels that delegate login to a third-party identity provider and also expose a sign-up form. A positive result is being able to register an account and then reach administrative functionality with it.
- Check whether newly registered accounts receive a default role with elevated permissions. A positive result is a new account that can view or modify content it should not.
- Test whether the CMS enforces authorisation on admin endpoints independently of the login. A positive result is an authenticated low-privilege account reaching admin actions directly.
- When working from a large public scope list, sample hosts systematically and check for hidden directories on each. A positive result is a reachable admin or management interface that is not linked from the public site.
Get the Medium app


What happened, in plain words
A security researcher found a Dutch Government website that let anyone create an account on its login page. When he logged in with the account he had just made, the site treated him as a full administrator. That meant he could control the website's content management system, the tool the site's owners use to publish and edit pages. He reported it, and the government confirmed and fixed it within 10 days.
This article walks through the same story for someone who has never done security testing. Every technical idea is explained where it first appears, and the few code-like details are copied exactly as they appeared in the write-up.
Background: what the researcher was after
The researcher, V1dr4X, describes himself as a cyber security enthusiast and a keen learner who documents and writes about the technologies and tools he learns and uses. His motivation for this particular hunt was simple: he saw someone on Twitter post that they had hacked a Dutch Government site, along with a photo of the T-shirt they received as a reward. The word "government" in the quote line is what caught his attention. He says plainly that he wanted that swag badly.
A quick note on terms before we go further:
- A bug bounty is a programme where an organisation invites outside people to look for security weaknesses in its systems and pays or rewards them for reporting what they find, instead of punishing them.
- Swag is the informal word for the branded merchandise, such as T-shirts, that some programmes give as rewards.
Finding a target
He looked online for the scope and resources for this programme and ended up at a GitHub gist. A gist is a small public page on GitHub, a code hosting site, used for sharing snippets and lists. This particular gist collects the scope of the Dutch Government programme: the list of websites and hosts that are allowed to be tested. The researcher describes it as containing 1500+ scopes and active hosts.
- Scope means the boundary of what you are allowed to test. Anything outside it is off limits, even if it belongs to the same organisation.
- A host is a single machine or website address on the internet, for example one subdomain of a larger site.
With 1500 or so hosts, choosing where to start was the hard part. His approach was to pick 10 websites at random and work through them one by one. The first 5 gave him nothing. He says he was not going to give up.
The website that stood out
After a while he found an interesting website. It was a normal responsive website, meaning it adjusts its layout to fit different screen sizes such as phones and desktops. What caught his eye at first glance was that it looked somewhat old.
He started testing its features. He identified it as a kind of blog website. Then he searched for hidden directories.
- A directory is a folder on a web server. Websites are made of files and folders, and some folders are not linked from any page a normal visitor sees.
- Hidden directory discovery is the practice of guessing or looking up folder and file names that are not advertised, to see whether something sensitive, such as an admin area, is reachable. It is like walking around a building trying doors that are not on the visitor map.
That search turned up an admin panel.
- An admin panel is the private management area of a website, where its owners log in to change content, settings and users. It is not meant for ordinary visitors.
The admin panel asked the visitor to log in with Netlify. Netlify is a service for hosting and building websites, and it can also handle logging users in. The researcher describes this as finally finding a login page.
The login page was, in his words, more interesting than the others, because it also offered a sign-up option. He notes that he is familiar with this kind of situation from CTFs.
- A CTF, or capture the flag, is a practice competition where people solve security puzzles in a safe, simulated environment. Many CTF challenges involve finding a way in through a feature that was not meant to grant access.
Why a sign-up form on an admin login matters
To understand the problem, it helps to separate two ideas that beginners often mix up:
- Authentication answers the question "who are you?". Logging in with an email address and password is authentication.
- Authorisation answers the question "what are you allowed to do?". Being allowed to edit the homepage is authorisation.
A healthy system does both. It checks that you are a real user, and then it checks that this particular user has the right to perform the action being requested. If a system only checks the first and forgets the second, anyone who can log in can do anything.
A useful everyday comparison: a hotel that checks your key card at the front door (authentication) but never checks which rooms the card opens (authorisation). If the card opens every door, the front desk check is not much protection.
Exploitation, step by step
Step 1: Create an account on the login page
The researcher signed up on the site's own sign-up form using his email address and a password. The write-up does not show the request or the response for the sign-up, so there is no code to reproduce here.
Why this step: the sign-up form was the unusual part. On an admin login, a public registration option is a door that anyone can open. The researcher wanted to see what kind of account it would produce.
Step 2: Log in with the newly created account
With the account created, he tried to log in again using the same email address and password that had just been registered. The login succeeded, and he was in the CMS with full admin access control over the webpage.
- A CMS, or content management system, is the software a site uses to create, edit and publish its pages without writing code by hand. WordPress is a well-known example, though the report does not name the product used here.
Why this step: logging in with a freshly made account shows what access a self-registered user receives. The account created through self-registration was treated as an administrator.
It also does not name the host, the CMS product or the Netlify configuration involved.
Step 3: Report
The researcher quickly made a proof of concept and reported it to the Dutch Government. A proof of concept, or PoC, is a small, safe demonstration that a weakness is real, usually with screenshots or a short recording, so the defenders can see it for themselves. After 10 days the government confirmed the bug and fixed it. He was offered a T-shirt.
Why it worked
What it shows is that a registration flow on the login page created an account which, once used to log in, carried full admin access to the CMS. In other words, the sign-up path and the administrative login path were not separated: an account created through self-registration was treated as an administrator.
Whether this came from a misconfigured identity provider, a default role assigned to new users, or an authorisation check that never ran is not stated, so any specific mechanism would be guesswork.
- An identity provider is a service that handles logging users in on behalf of another site, so the site does not have to store passwords itself. Netlify acting as the login handler is an example of this pattern.
- A default role is the permission level a system gives a new account automatically when nobody chooses one explicitly. If that default is "administrator", every new account is an administrator.
Impact
Under the conditions shown, anyone who could reach the login page and complete the sign-up could obtain full admin control over the website's CMS. The researcher demonstrated this with an account created from his own email address and password.
Fix
The write-up states only that the Dutch Government confirmed the bug and fixed it within 10 days. A reasonable fix would be to stop self-registration from producing accounts with administrative privileges, for example by removing the sign-up option from the admin login, assigning new accounts a non-privileged role, and enforcing an authorisation check on admin actions rather than relying on authentication alone. The write-up does not confirm which of these was applied.
Variants to test
If you want to look for similar problems on sites you are allowed to test, these are directions worth considering:
- Look for admin panels that delegate login to a third-party identity provider and also expose a sign-up form. A positive result is being able to register an account and then reach administrative functionality with it.
- Check whether newly registered accounts receive a default role with elevated permissions. A positive result is a new account that can view or modify content it should not.
- Test whether the CMS enforces authorisation on admin endpoints independently of the login. A positive result is an authenticated low-privilege account reaching admin actions directly.
- When working from a large public scope list, sample hosts systematically and check for hidden directories on each. A positive result is a reachable admin or management interface that is not linked from the public site.
Get the Medium app


Glossary
- Admin panel: the private management area of a website where its owners log in to change content, settings and users.
- Authentication: the process of proving who you are, usually by logging in with an email address and password.
- Authorisation: the process of deciding what an authenticated user is allowed to do.
- Bug bounty: a programme where an organisation invites outside people to find and report security weaknesses in exchange for rewards.
- CMS (content management system): software used to create, edit and publish website pages without writing code by hand.
- CTF (capture the flag): a practice competition where people solve security puzzles in a safe, simulated environment.
- Default role: the permission level a system gives a new account automatically when nobody chooses one explicitly.
- Directory: a folder on a web server; some folders are not linked from any public page.
- Gist: a small public page on GitHub used for sharing snippets and lists.
- Hidden directory discovery: the practice of guessing or looking up folder and file names that are not advertised, to find reachable but unlinked areas.
- Host: a single machine or website address on the internet, such as one subdomain of a larger site.
- Identity provider: a service that handles logging users in on behalf of another site, so the site does not store passwords itself.
- Netlify: a service for hosting and building websites that can also handle logging users in.
- Proof of concept (PoC): a small, safe demonstration that a weakness is real, usually with screenshots or a short recording.
- Responsive website: a site whose layout adjusts to fit different screen sizes such as phones and desktops.
- Scope: the boundary of what is allowed to be tested in a bug bounty programme.
- Swag: branded merchandise, such as a T-shirt, sometimes given as a reward.