Found 3 IDOR Vulnerabilities in the Same Target!
The email alerts feature did not check whether an alert belonged to the authenticated user before acting on it. An attacker could delete, pause or resume, or edit another user's email alert by changing the alert identifier in the request.
Published on medium.com
I was casually doing a pentest on Target.com when I stumbled upon something really interesting…
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 performed the requested action on the email alert without verifying that the alert belonged to the authenticated user.
Impact
An attacker could delete, pause or resume, or edit any other user's email alerts, affecting their ability to receive job alerts and the integrity of their settings.
What the attacker needed
A free account; knowledge of another user's alert identifier
The fix
The application should link every action to the authenticated user session and verify that the user owns the email alert before performing any operation.
How it was found
- Create two accounts, each with its own email alert.
- Intercept the request that deletes an alert from the first account.
- Replace the alert identifier with the one from the second account and send it; the second account's alert is deleted.
- Intercept the request that pauses an alert from the first account.
- Replace the alert identifier with the one from the second account and send it; the second account's alert is paused.
- Intercept the request that edits an alert from the first account, replace the identifier with the second account's alert identifier, change the settings and send it; the second account's alert is modified.
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) happens when a website uses an identifier in a request, like a number or code for an item, but does not check that the item belongs to the person making the request. Here, the email alert identifier could be swapped for someone else's, and the server would still carry out the action. That let one user change or remove another user's alerts.
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.