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.
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
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
- Browse for an image and click the upload button.
- Capture the resulting request in an intercepting proxy.
- Change the personId parameter to the second account's identifier.
- 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.