2:00 AM IDOR leads to some Adrenaline rush
The registration activation link used a numeric object identifier and an activation key; by changing the object identifier to another user's ID and removing the key parameter, the server logged the attacker into that user's account. This allowed full access to the victim's dashboard, including inviting the attacker as an admin and removing security protections.
Published on imwaiting18.medium.com
It has been a while literally. I hope this write-up finds you well.
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 object identifier from the request and did not verify that the activation key matched the user, allowing access when the key was omitted.
Impact
An attacker could gain full access to another user's dashboard, including inviting themselves as an admin and removing security protections like SSL certificates and WAF.
What the attacker needed
A free account; victim has registered; attacker can guess victim's numeric ID
The fix
The server should validate that the activation key matches the user identified by the object parameter and reject requests with missing or mismatched keys.
How it was found
- Sign up for a new account on the application.
- Receive the activation link in the email, which contains an object parameter and a key parameter.
- Change the object parameter to a different numeric value (e.g., one less than your own).
- Remove the key parameter entirely from the URL.
- Visit the modified URL, which logs you in as the user with that object ID.
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 (Insecure Direct Object Reference) is when a website uses a user-supplied value, like a number, to look up a record without checking if you are allowed to see it. Here, the activation link contained a user ID number and a secret key; by changing the number to another user's ID and deleting the key, the server logged the attacker in as that user. This is like changing the account number on a form and getting someone else's bank statement.
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.