IDOR revealing Images cdn links | by Susan wagle
The markdown editor used a sequential image ID in the comment syntax, so changing that ID let an attacker retrieve CDN links for other users' images, including private and deleted ones. This exposed images that should not have been accessible.
Published on susanwagle123.medium.com
Hi Bug Bounty community, this is my first write up for a bug I found in a private HackerOne program. Let’s call it redacted.com for this article.
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
Impact
An attacker could obtain CDN links to other users' images, including private images and images that users believed were deleted, though the report does not claim access beyond the image links.
What the attacker needed
A user account on the site; ability to post comments with images
The fix
The issue was fixed according to the timeline.
How it was found
- Upload an image and attach it to a comment in the markdown editor.
- Observe that the editor inserts a placeholder containing the image ID.
- Change the image ID to another value and post the comment.
- The comment then exposes the CDN link for the image with that ID.
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 picture to a website, the site gives it a reference number. This report found that the number was easy to guess and the site did not check whether the picture belonged to you. By changing the number, someone could see pictures uploaded by other people, even ones they thought were private or deleted.
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.