$600 for IDOR (File or Folder Download)
The folder download endpoint used a sequential numeric folderId, allowing an attacker to brute-force IDs and access private folders containing sensitive company documents. The attacker could download gigabytes of private data.
Published on encodedguy.medium.com
I hope you all are doing too well in your journey to be better. I would like to share one of my findings today via Medium.
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 application used a predictable, sequential numeric identifier for folders and did not check whether the requesting user was authorised to access each folder.
Impact
An attacker could download private company documents and folders, some gigabytes in size, from multiple hosts.
What the attacker needed
Access to the public download functionality; Ability to intercept and modify requests
The fix
The application should enforce authorisation checks on each folder download request and use non-sequential, unpredictable identifiers.
How it was found
- Intercept the folder download request to see the folderId parameter.
- Collect folderId values for public folders by downloading them and noting the IDs.
- Brute-force folderId values using Burpsuite Intruder over a range.
- Identify IDs that return HTTP 200 and access private folders.
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.
The website had a download link that used a simple number to identify each folder. Because the numbers were predictable, someone could try many numbers in a row and find folders that were not meant to be public. This let them download private company files.
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.