Web Security Series #4 — Discovering Unauthorized Resources via
The application used a numeric account identifier in the URL to fetch user records without checking whether the requester was allowed to see them. By changing the number, an attacker could view other users' accounts, including an administrator account.
Published on medium.com
Access control mechanisms are a fundamental component of web application security. When implemented incorrectly, they can allow attackers to access resources that should be restricted.
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
The application relied on a client-supplied account identifier to retrieve records without verifying on the server that the requesting user was authorised to access that record.
Impact
An attacker could access other users' accounts and an administrator account, leading to horizontal and vertical privilege escalation and exposure of sensitive data.
What the attacker needed
Access to the application; ability to modify the account parameter
The fix
The application should verify authorisation on the server for every request and avoid exposing raw internal identifiers, for example by using indirect reference maps.
How it was found
- Capture the request containing the account parameter in Burp Proxy history.
- Send the request to Repeater and change the account number to another value.
- Observe that the response returns a different user's data.
- Send the request to Intruder, mark the account number as the payload position, and load a list of sequential numbers.
- Run the attack and filter responses for admin-related keywords.
- Open the discovered account number in the browser to confirm access to an administrator account.
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 simple number in the address to say which account to show, like a locker number. If the site does not check that the locker belongs to you before opening it, you can try other numbers and peek into other people's lockers. Here, changing the number showed other people's accounts, including an admin's.
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.