I Found An IDOR Flaw where users' attached pictures and documents were leaked.
An IDOR flaw in an attachment download endpoint allowed changing the attachment ID to access other users' uploaded pictures and documents. The attacker could view sensitive information such as bank details and addresses.
Published on medium.com
Thank you for 2K Followers, keep showing love :) Hi, Ajak Amico’s welcome back to another blog. I will explain how I found an IDOR vulnerability in a particular API request which led to see other user’s attached documents and pictures.
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 attachment download endpoint did not verify that the requested attachment belonged to the authenticated user, relying only on the attachment ID.
Impact
An attacker could view other users' attached pictures and documents, which contained sensitive information such as bank details and addresses; the site had a Cloudflare WAF and account bans for suspicious activity, but these did not prevent the IDOR.
What the attacker needed
A user account on the site; ability to create a support ticket
How it was found
- Create a support ticket and attach an image.
- Preview the ticket and copy the image address.
- Open the image URL in a new tab and observe the attachmentid parameter.
- Change the attachmentid value to another number.
- The response returns a different user's attached picture or document.
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.
An IDOR (Insecure Direct Object Reference) is when a website uses a simple identifier, like a number, to refer to a file or record, and does not check that the person asking is allowed to see it. Here, the attachment ID in the URL could be changed to any number, and the site would return someone else's file without verifying ownership.
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.