IDOR on deleting drafts on https://apps.topcoder.com/wiki/users/viewmydrafts.action via discardDraftId parameter
The draft deletion endpoint on the wiki accepted a draft identifier from the request without verifying that the draft belonged to the requesting user. An attacker could change that identifier to delete other users' drafts.
- Triaged in 12 hours
- Fixed in 4 days
- Disclosed after 5 days
Hi :)
On https://apps.topcoder.com/wiki/users/viewmydrafts.action, you can see your drafts, edit or delete them. Users can delete their own drafts on https://apps.topcoder.com/wiki/users/viewmydrafts.action?discardDraftId=<DRAFT_ID>.
But there is no check and an attacker can change discardDraftId and delete all drafts.
Impact
An attacker can delete other user's drafts.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the draft identifier supplied in the request and never confirmed the draft belonged to the logged-in user.
Impact
An attacker could delete other users' drafts.
What the attacker needed
A logged-in account; knowledge of a draft identifier
How it was found
- Open your own drafts page while logged in.
- Trigger deletion of one of your drafts and note the draft identifier in the request.
- Change that identifier to another value and send the request again.
- Observe that another user's draft is deleted.
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 report has not been written yet. The Original tab links to the source.
A draft is an unpublished page a user is still working on. The site deleted a draft based only on a number in the web address, without checking that the person asking owned that draft. By changing the number, someone could delete drafts belonging to other people.
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.