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.
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.
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
- Discover the createJWT function in the user service code.
- Guess a valid Toyota employee email using the firstname.lastname format.
- Send an HTTP request to the createJWT endpoint with the guessed email to obtain a JWT.
- Use the JWT as a cookie to authenticate to the API.
- 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.