Hacking more than 130 000 car worldwide in 5 minutes
A GPS car tracking application exposed real-time location data of vehicles through a URL that included user and car identifiers. By entering the demo section, the attacker obtained a cookie that downgraded permissions, and then by manipulating the identifiers in the URL, they could view other users' cars.
Published on ahmadmansourr.medium.com
Hello everyone, i am Ahmad Mansour, 18y old penetration tester from Lebanon ( Web, API, Network, Active Directory and abit of mobile basic pentesting ), without wasting time lets dive into the writeup of today.
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
Impact
The vulnerability allowed viewing real-time location of more than 130,000 cars, which could enable tracking of individuals.
What the attacker needed
Access to the application; enter demo mode
The fix
The application should enforce proper server-side authorization checks for each car based on the authenticated user, rather than relying on a client-side cookie to determine access.
How it was found
- Observe a URL containing parameters for card, machineType, and user.
- Try the URL directly, which results in an error.
- Enter the demo section of the application.
- Use the same URL again and successfully view a car's location.
- Inspect HTTP requests and notice a cookie named test with value 0.
- Change the cookie value to 1 and lose access, confirming the cookie's role.
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.
The app used a web address that contained numbers identifying a car and a user. Normally, you should only see your own car, but the app did not check properly. By visiting a demo mode, the app gave the attacker a special cookie (a small piece of data stored in the browser) that lowered their privileges. Then, by changing the numbers in the address, the attacker could see other people's cars on a map.
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.