IDOR Leading to Unauthorized Video Deletion via Video ID Disclosu
The delete video endpoint did not check that the authenticated user owned the video identified by the video_id parameter. An attacker could obtain another user's video_id by liking their video and then use it to delete that video.
Published on medium.com
The application allows users to delete their own videos through a specific endpoint that relies on a videoid parameter.
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
Impact
An attacker could delete any user's videos without authorization.
What the attacker needed
A free account; victim has a video; attacker can like victim's video
The fix
The backend should enforce strict ownership checks, verifying that the authenticated user owns the video_id before deleting it.
How it was found
- Delete a video from your own account and intercept the request.
- Like a target video from the victim's profile and intercept the like request.
- Extract the victim's video_id from the like request.
- Replace your own video_id in the delete request with the victim's video_id and send it.
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 your own video, the app sends a request containing an identifier for that video. The server should check that the video belongs to you before deleting it, but it did not. The attacker could find another person's video identifier by liking their video, then use it to delete that video.
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.