Exploiting An Idor That Deletes Victims Job Alert
A job alert deletion endpoint accepted a base64-encoded parameter block containing the alert identifier, and the server did not check that the alert belonged to the requesting user. An attacker could change the identifier to another user's alert and delete it, and because identifiers were numeric, could do so at scale.
Published on infosecwriteups.com
In the ever-evolving landscape of cybersecurity, hidden vulnerabilities lie beneath the surface, waiting to be discovered. Recently, I stumbled upon an Insecure Direct Object Reference (IDOR) vulnerability — an unsuspecting gateway that allowed me to delete the victims job alerts.
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 delete handler trusted the client-supplied alert identifier inside the encoded parameter block and never verified that the alert belonged to the logged-in user.
Impact
An attacker could delete other users' job alerts, and since the identifiers were numeric, could do so for many users at once.
What the attacker needed
Two accounts on the job portal; an intercepting proxy
How it was found
- Create a job alert and capture the delete request in an intercepting proxy.
- Notice the request is a GET with a long base64-encoded string and no visible parameters.
- Decode the string to reveal the parameters, including the alert identifier.
- Create a second account with its own job alert and note its alert identifier.
- Replace the identifier in the decoded string, re-encode it to base64 and resend the request.
- Confirm the second account's alert list is now empty.
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.
When you delete something on a website, your browser sends an identifier for that item to the server. Here the server deleted whatever item the identifier pointed to without checking that it was yours. So anyone who changed the number could delete other people's saved job 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.