How Convenience Over Security Exposed 160K+ Citizens: An IDOR Bre
A public government tracking endpoint returned citizens' personal records for any sequential identifier without checking authorisation. An attacker could enumerate identifiers to harvest national IDs, birth certificates, phone numbers and addresses at scale.
Published on medium.com
Hello, viewers. Today, we are looking at a critical security flaw in a government server that exposes a massive national security threat.
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 endpoint looked up records by a sequential identifier and served them without any authentication or authorisation check.
Impact
Because no authentication is required, an attacker could scrape the endpoint to harvest the entire database of over 160,000 citizens' personal data, enabling fraud and stalking.
What the attacker needed
None
The fix
The endpoint should check that the requester is authorised to view the specific record before returning it, rather than relying on the identifier alone.
How it was found
- Navigate to the public status endpoint.
- Enter a sequential identifier starting from the low end of the range.
- Observe that citizen details are displayed without authentication.
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 sometimes puts a record number in the address, like a page number in a book. Here the site showed anyone's private details just because someone changed that number, without checking whether they were allowed to see it. This is called an insecure direct object reference: the site trusts the number instead of checking permission.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.