[IDOR] $400 — Deleting Other Project in Shopee
An IDOR vulnerability allowed an attacker to delete another user's project by changing the shop_id parameter in a request. The attacker could delete all projects belonging to other accounts using a bruteforce method.
Published on aryasec.medium.com
Hello everyone, introducing my name Tengku Arya Saputra (Follow my Linkedin) previously I have discussed about my discovery with a very critical vulnerability level with a bounty $6,400, on this occasion I will try to share my discovery on the shopee subdomain
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 application did not verify that the authenticated user owned the project being deleted, relying only on the shop_id parameter.
Impact
An attacker could delete all projects belonging to other users by bruteforcing shop IDs, potentially causing data loss.
What the attacker needed
A free account; victim has a project
How it was found
- Register an account and choose the Third Party Partner Platform option.
- Create a project on a Local Store account type with a free store area.
- Note the shop ID of account 1 and account 2.
- Delete a project in account 1 and capture the request.
- Replace the shop_id value in the request with account 2's shop ID.
- Send the request, which successfully deletes account 2's project.
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 an identifier like a number to refer to something, but doesn't check if you're allowed to access it. Here, the attacker changed the shop ID number in a request to delete someone else's project.
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.