Finding an IDOR in Tesla From the Outside
A Tesla platform endpoint returned files by unique identifier without checking ownership, so anyone with a valid identifier could read another user's file. The author found this by mapping backend endpoints from JavaScript bundles after being blocked by region and asset prerequisites.
medium.com
Published on medium.com
When you’re testing applications, you’ll eventually hit a wall — a point where the intended user flow just isn’t accessible.
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 backend trusted the supplied file identifier and did not verify that the requesting user owned the file.
Impact
Anyone holding a valid file identifier could read another user's file, though the text does not say how identifiers are obtained or whether any defence limited the issue.
What the attacker needed
A valid file identifier; no full account needed
How it was found
- Note that the normal workflow is blocked by a region-locked phone number and a verified asset.
- Extract API routes and request formats from the frontend JavaScript bundles.
- Filter the endpoint list for generic components, especially those handling files or shared resources.
- Send direct requests to those endpoints, modifying parameters, without completing the workflow.
- Observe that a file-retrieval endpoint returns data for a supplied identifier without an ownership check.
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) is when a website lets you fetch a record just by knowing its identifier, without checking that the record belongs to you. Here, a file-download endpoint accepted an identifier and returned the file even though the requester did not own it. The researcher could not complete the normal sign-up flow, so instead read the site's JavaScript to find backend endpoints and tested them directly.
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.