EventID: 119 — [SOC169 — Possible IDOR Attack Detected] —
A SOC analyst investigated an alert about a possible IDOR attack and found that the attacker changed a user_id parameter in a URL to retrieve other users' details. The logs showed differing response sizes, which the analyst took as evidence that data was returned successfully.
Published on medium.com
In this walkthrough, we will analyse a letsdefend.io alert. Let’s start with alert 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 the server trusted the user_id value supplied in the request without checking that the requester was authorised to access that user's records.
Impact
The attacker could obtain details of multiple users, and the analyst concluded the attack was successful.
What the attacker needed
Network access to the web application; a request containing a user identifier
How it was found
- Review the alert details and gather the source and destination addresses.
- Check the source address in threat intelligence services to judge whether it is malicious.
- Search the web logs for traffic between the attacker address and the server.
- Inspect the requested URLs and notice the user_id parameter was changed.
- Compare response sizes to judge whether data was returned.
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.
An IDOR happens when a website uses a value like a user number in the address to decide which record to show, but never checks that the person asking is allowed to see it. By changing that number, someone can view other people's data. Here the analyst saw requests where the user number was altered and responses of different sizes came back.
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.