Skip to content
IDOR Write-up Beginner

Changing Others Profile Pic with IDOR

The profile picture upload request included the user ID, and the server did not verify that the ID belonged to the authenticated user. An attacker could change any user's profile picture by substituting another user's ID.

Gnana Aravind K Follow

Published on rashahacks.com

Hi folks! Hope you are doing great.

Gnana Aravind K, on rashahacks.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

Root cause

Likely the server trusted the user ID supplied in the upload request without checking it against the logged-in user.

Impact

An attacker could change the profile picture of any user, which could be used for impersonation or harassment.

What the attacker needed

A free account; knowledge of the victim's user ID

How it was found

  1. Create two accounts and note the user ID of the second account.
  2. While logged in as the first account, upload a profile picture and capture the request.
  3. Change the user ID in the request to the second account's ID and send it.
  4. Observe that the second account's profile picture has been changed.

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 profile picture, the website sends a request that includes your user ID. The server should check that the ID matches your account, but it did not. So anyone could put someone else's ID in the request and change that 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.