Skip to content
IDOR Write-up Intermediate

IDOR on Tesla Disclosing Users’ Emails

The account settings page identified the user from a UUID inside a JWT cookie, and the server did not check that the UUID belonged to the logged-in user. An attacker who knew another user's UUID could swap it into their own request and read that user's email address.

medium.com

Published on medium.com

I started by choosing a program to hunt for access control vulnerabilities, and I decided to begin with one of my favorite programs: Tesla.

Gaber Fahmy, on medium.com

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 server trusted a user-supplied UUID in the JWT payload to decide whose account data to return, instead of binding the request to the authenticated session.

Impact

An attacker who knows a victim's UUID could disclose that user's email address; the report does not show a way to obtain UUIDs, which limits practical exploitation.

What the attacker needed

Two free accounts; knowledge of the victim's UUID; a proxy such as Burp Suite

The fix

The vulnerability was fixed after the report.

How it was found

  1. Create an account and open the personal information page under account settings.
  2. Create a second account and capture the request to that page with a proxy.
  3. Decode the JWT in the auth cookie and note the sub UUID.
  4. Replace the first account's UUID with the second account's UUID and send the request.
  5. Follow the redirect and search the response for the victim's email.

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.

When you log in, the site gives your browser a token that says who you are. This site trusted an identifier inside that token without checking it matched the logged-in account. By changing that identifier to someone else's, the attacker could make the site show that person's email address.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.