Exploiting OData Wildcards: How I Scraped Tesla’s Internal Empl
An authenticated partner user could use wildcard queries in API endpoints to enumerate internal employee PII, retrieve database schema and developer emails, and obtain global ticket counts. This exposed personal mobile numbers, organisational hierarchy, internal groups, and business metrics.
In this post, I’ll walk through a series of vulnerabilities I discovered on [REDACTED].tesla.com that allowed for mass PII enumeration, database schema disclosure, and global business metric leaks.
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 accepted user-supplied query expressions with wildcards and did not enforce authorisation scoping on the returned records or fields.
Impact
An authenticated partner could access sensitive employee PII, internal developer emails, database schema details, and global business metrics, which could aid spear-phishing and intelligence gathering.
What the attacker needed
Partner-specific provisioning
The fix
The report recommends sanitising metadata, enforcing strict scoping on count responses, and limiting wildcard operators to non-sensitive datasets; it does not state whether these were implemented.
How it was found
- Access the partner portal after provisioning.
- Send a request to the profile lookup endpoint with a wildcard query in the query parameter.
- Observe the response containing internal employee details.
- Send a request to the dataset management endpoint with a query for a specific space.
- Observe the response containing developer emails and database schema.
- Send a request to the search endpoint with take=0 and a wildcard query.
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's search feature let users put special wildcard characters into a query, and the server did not check whether the user was allowed to see all the results. By using a wildcard that matches everything, the user could pull back records about other people, including private phone numbers and internal notes. This is a type of access-control bug where the server trusts the query too much.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.