Critical IDOR: Unrestricted Access to All Company Published Files
An API endpoint that returned published file details accepted a file identifier and an API key without checking whether the caller was allowed to see that file. An attacker with a valid API key could enumerate identifiers and download thousands of files, including private and unlisted ones.
بس� الله والصلاة والسلا� على رسول الله ﷺ❤️، الله� علِّ� نا � ا ينفعنا، وانفعنا ب� ا علَّ� تنا، وزِدنا عل� ًا نافعًا
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 API endpoint returned file details and download links based only on the supplied file identifier and API key, without verifying that the caller was authorised to access that particular file.
Impact
An attacker with a valid API key could download thousands of files, including private and unlisted ones, because there was no rate limiting to stop enumeration.
What the attacker needed
A valid API key; a valid publishedfileid; no rate limiting on the endpoint
How it was found
- Crawl historical URLs and API documentation to find API methods and exposed API keys.
- Identify a valid API key from the crawled data.
- Use the API documentation to find the GetPublishedFileDetails method and its parameters.
- Obtain a valid publishedfileid from historical API responses.
- Send a request with the API key and file identifier to retrieve a file_url.
- Enumerate file identifiers with Burp Intruder and filter by response length to download many files.
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) happens when a website lets you ask for a specific item by its number or name, but forgets to check that the item belongs to you. Here, the API returned a download link for any file number you gave it, so anyone with a valid API key could walk through the numbers and collect files that were meant to be private.
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.