Skip to content
IDOR Write-up Beginner

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.

StrangeRwhite, on medium.com

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

  1. Intercept the upload request using a tool like Burp Suite.
  2. Modify the image ID parameter to reference another user's image.
  3. Submit the modified request, so the profile now shows the other user's picture.
  4. Upload a new image for the profile, causing the system to delete the old image ID.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.