Skip to content
IDOR Disclosed report Beginner

idor on upload profile functionality

The profile image upload endpoint accepted a client-supplied person identifier, so changing that value let one account's upload land on another user's profile. An attacker could therefore change the profile image of any user.

risinghunter Follow

Originally disclosed on HackerOne

  • Triaged in 12 hours
  • Fixed in 2 months
  • Disclosed after 6 months

Vulnerable URL: https://██████████/███████ID/#Common/EditOne/Person/{account_id} steps to reproduce: 1).browse the image and click on the upload button 2).capture this request in burp suite 3). change the value 'personId' parameter to account2 account_id (please see screenshot1) 4).then goes to account2, then you will see the uploaded image is successfully goes to the approved tab

please see video attach below you will understand completely

Impact

an attacker is able to change profile image of any user

The original report as published on HackerOne, by risinghunter. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 upload endpoint trusted the client-supplied person identifier and did not verify that it matched the authenticated user.

What the attacker needed

Two accounts; ability to intercept requests

How it was found

  1. Browse for an image and click the upload button.
  2. Capture the resulting request in an intercepting proxy.
  3. Change the personId parameter to the second account's identifier.
  4. Log in to the second account and see the uploaded image in the approved tab.

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.

When you upload a picture, the site sends a request that includes a number saying whose profile it is for. The site trusted that number without checking it belonged to the person sending the request. By swapping the number for someone else's, the uploader could put their own image on another person's profile.

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.

More by risinghunter

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.