$900 IDOR: Unauthorized Access to Form Attachments via Direct API
A low-privileged viewer could download form attachments they were not authorised to access by directly calling an API endpoint with an attachment ID and name. The endpoint lacked proper authorisation checks, and sequential IDs plus guessable names allowed enumeration of sensitive files.
Hi Everyone! While testing a SaaS platform (ExampleCenter), I discovered an authorization bypass vulnerability that allowed a low-privileged user to download file attachments from forms they had no access to.
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
The backend authorised access based only on the attachment ID and name, without verifying the user's permissions to the associated form or submission.
Impact
An attacker could access sensitive documents and personal data from forms they are not authorised to view, and enumeration of sequential IDs and guessable names could expose many files.
What the attacker needed
A viewer-level account; knowledge of attachment ID and name
The fix
The endpoint should verify that the requesting user has permission to access the form and submission associated with the attachment before serving the file.
How it was found
- Log in with a viewer-level account that cannot access target forms.
- Capture a legitimate attachment download request to observe the endpoint and parameters.
- Modify the attachment ID and name to values belonging to another form.
- Send the request and receive the file with a 200 OK response.
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.
A viewer account is meant to only see certain forms, but the website's file download link didn't check if the viewer was allowed to see that file. By changing the file's ID number in the request, the tester could download other people's private documents.
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.