Who needs credentials, when you have the phone number…?
The mobile app's API returned any customer's personal and vehicle details when the caller's phone number in the request was swapped for another, and a profile-update request accepted changes to other users' records the same way. An attacker could read or tamper with the data of any customer by guessing or enumerating phone numbers.
Published on medium.com
Hello World, as I said in my previous article, I’m back with yet another write-up.
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 API trusted the phone number supplied in the request as the identity of the user, without checking it against the logged-in session or applying authorisation.
Impact
An attacker could read personal and vehicle data of any customer and could tamper with profile fields, with no rate limiting on the data-fetch request to slow enumeration.
What the attacker needed
A valid account with a phone number; ability to intercept app traffic; SSL pinning bypass; victim's phone number
The fix
The text says the entity informed that the issue was fixed after CERT-IN contacted them, but it does not describe the fix.
How it was found
- Log in to the app with a phone number and OTP.
- Capture the request that fetches the user's and vehicle's details.
- Change the phone number in that request to another number.
- Observe that the other user's details are returned.
- Capture the request that changes the phone number and other profile parameters.
- Change the phone number and one parameter value, then confirm the change was saved.
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 asks a server for your details by sending your phone number. The server never checked that the phone number belonged to the person making the request, so changing it returned someone else's information. The same missing check let the author change another person's profile details.
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.