How I Discovered an IDOR Vulnerability in chatgpt.com and Got Re
The platform assigned predictable media IDs to uploaded images, and the remix feature accepted any media ID without checking ownership. An attacker could guess IDs and use other users' images through the remix function.
Published on medium.com
This post outlines my discovery of an Insecure Direct Object Reference (IDOR) vulnerability in a widely used AI-powered image platform. The flaw allowed unauthorized access to user-uploaded images by exploiting a predictable media ID pattern through the platform’s “remix” feature.
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 remix endpoint accepted a media ID and used the referenced image without verifying that the requesting user owned that media.
Impact
An attacker could access or use other users' uploaded images through the remix feature, though the author limited testing and did not demonstrate further exploitation.
What the attacker needed
A free account; ability to upload images; access to the remix feature
The fix
The issue was fixed after responsible disclosure, though the text does not describe the specific fix.
How it was found
- Upload images across different accounts and observe the media ID format.
- Notice that the ID prefix stays the same and only the suffix changes predictably.
- Guess media IDs belonging to other users.
- Replace your own media ID with a guessed one in the remix function.
- Use a script to generate random IDs following the same structure and test them with remix.
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, the site gives it a reference number. If those numbers are easy to guess and the site does not check who owns the picture, someone else can use your picture by trying different numbers. This is called an IDOR, meaning the site trusts a reference you supply without checking you are allowed to use it.
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.