How I Removed Other User`s Uploaded Images in a Few Clicks
The application allowed a user to set their profile image to another user's image ID, and then when the attacker uploaded a new image, the system deleted the old image because it believed it was no longer in use. This let an attacker remove other users' profile pictures and team logos.
medium.com
Published on medium.com
Sometimes in bug hunting, you find vulnerabilities that require hours of digging, complex payloads, and deep technical skills. And sometimes… you just change a single value, click send, and boom — someone else’s picture is gone.
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 remove other users' uploaded images, including profile pictures and team logos, by causing the server to delete files still in use by others.
What the attacker needed
A user account; ability to intercept HTTP requests; knowledge of another user's image ID
The fix
The application should store ownership information for each uploaded image and verify it before any delete or update action, and should create separate physical copies if multiple users reference the same image.
How it was found
- Intercept the upload request using a tool like Burp Suite.
- Modify the image ID parameter to reference another user's image.
- Submit the modified request, so the profile now shows the other user's picture.
- Upload a new image for the profile, causing the system to delete the old image ID.
- The other user's profile picture disappears.
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 upload a picture, the site gives it a unique ID. The site let me change my profile to point to someone else's picture ID. Then, when I uploaded a new picture, the site deleted the old one, thinking I was the only user, which removed the other person's picture.
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.