Auth.Tesla.com Account Takeover of Internal Tesla Accounts
The Tesla Retail Tool accepted logins from both the external and internal identity providers without checking which one a user authenticated with. An attacker could register an external account using a former employee's internal email address and inherit that user's privileges in the tool.
Originally disclosed on Bugcrowd
- Accepted in 10 days
- Fixed in 11 days
- Disclosed after 4 months
Summary by evanconnelly
Tesla has two Identity Providers (IDPs), auth.tesla.com for external users and sso.telsa.com for employees. Tesla Retail Tool (TRT) allows logins from both and was not checking what IDP the user logged-in with (auth.tesla.com vs sso.tesla.com). This made for a condition where via Google Dorks, I was able to identify names and extrapolate email addresses of former Tesla staff and then register accounts with the external IDP using the email addresses of former employees whose accounts had been disabled on the internal IDP but who still had privileges defined by their internal Tesla email address within TRT and ultimately log into TRT with the privileges of those users.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application trusted the email address as the identity and never verified which identity provider issued the login.
Impact
An attacker could log into the Tesla Retail Tool with the privileges of former employees whose internal accounts had been disabled.
What the attacker needed
Names of former staff are publicly findable; external sign-up with a work email is allowed; former accounts still hold privileges in the tool
How it was found
- Find names of former Tesla staff through public search (Google Dorks).
- Work out their internal Tesla email addresses from those names.
- Register external accounts with the external identity provider using those email addresses.
- Log into the Tesla Retail Tool and receive the privileges tied to those internal email addresses.
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 report has not been written yet. The Original tab links to the source.
A company can have two login systems: one for the public and one for staff. This tool let you in through either door but never checked which door you used. So someone could sign up on the public door using a former employee's work email and be treated as that employee inside the tool.
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.