Skip to content
Account takeover Write-up Intermediate

Alternative link

The external Tesla identity provider allowed registration with any @tesla.com or @teslamotors.com email address without email validation. An attacker could register an account using a former employee's internal email address and access the Tesla Retail Tool with that employee's still-assigned privileges.

evanconnelly.github.io

Published on evanconnelly.github.io

In testing various Tesla web applications as part of the Tesla Bug Bounty Program, I’ve created many Tesla user accounts. At some point, while creating a new account, I became curious if I could register an account using a Tesla email address.

Evan Connelly, on evanconnelly.github.io

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 external identity provider did not verify email ownership and the Tesla Retail Tool did not check which identity provider the user authenticated with.

Impact

An attacker could access the Tesla Retail Tool with the privileges of a former employee, potentially viewing confidential IT and business information.

What the attacker needed

Knowledge of a former employee's email; no email validation on external IdP; TRT allows external IdP logins

The fix

The external identity provider should validate email ownership and the Tesla Retail Tool should check which identity provider was used for authentication.

How it was found

  1. Search LinkedIn for former Tesla employees who likely had access to the Tesla Retail Tool.
  2. Extrapolate their internal Tesla email addresses from the profiles.
  3. Register an account on the external identity provider using a former employee's email address.
  4. Log in to the Tesla Retail Tool with the newly created account and access it with the former employee's privileges.

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.

Tesla has two login systems: one for outside users and one for employees. The outside system let anyone sign up using an @tesla.com email address without proving they owned it. If a former employee's email still had access to an internal tool, an attacker could sign up with that email and get in.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.