Skip to content
Account takeover Write-up Intermediate

Hacking into Toyota’s global supplier management network

The Toyota GSPIMS web application contained a createJWT endpoint that generated a valid authentication token for any user email without requiring a password, and a findByEmail endpoint that disclosed user details. An attacker could log in as any of the 14,000+ users, escalate to System Admin, and access or modify global supplier data.

Eaton Z Follow

Published on eaton-works.com

Over the course of a slow week in late October 2022, I decided to explore the subdomains of various major companies to see if I could find any exploits worth reporting/writing about. I found several interesting Toyota websites.

Eaton, on eaton-works.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 createJWT endpoint was intended for an 'Act As' feature but lacked any authentication or authorization check, allowing anyone to generate a token for any email.

Impact

An attacker could log in as any of 14,000+ users, escalate to System Admin, and access or modify supplier data.

What the attacker needed

Knowledge of a valid user email; ability to send HTTP requests

How it was found

  1. Discover the createJWT function in the user service code.
  2. Guess a valid Toyota employee email using the firstname.lastname format.
  3. Send an HTTP request to the createJWT endpoint with the guessed email to obtain a JWT.
  4. Use the JWT as a cookie to authenticate to the API.
  5. Use the findByEmail endpoint to enumerate managers and escalate to System Admin.

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.

A JSON Web Token (JWT) is like a digital ID card that a website gives you after you log in, and you show it to prove who you are. In this case, the website had a hidden feature that would create a valid ID card for any email address without asking for a password. That meant anyone who knew or guessed an employee's email could pretend to be that person and access sensitive company information.

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.

More by Eaton Z

View all

10 more disclosed reports, best first.

More from Toyota

View all

The newest disclosed reports for this program.

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.