Beyond SSL Pinning: When Changing One Number Broke an App’s Aut
The mobile app's backend used a client-supplied object identifier to fetch user data without checking whether the authenticated user owned that object. An attacker with a valid account could change the identifier to read other users' profile data.
Published on medium.com
Most mobile assessments start the same way. You get past SSL pinning, you point the traffic at a proxy, and you finally get to watch the app talk to its backend.
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 backend failed to verify that the authenticated user owned the requested object before returning it, trusting the client-supplied identifier as proof of access.
Impact
An authenticated attacker could read other users' personal information, account metadata, preferences, activity history, and sensitive business data, leading to privacy and compliance issues.
What the attacker needed
A valid user account; ability to intercept app traffic; knowledge of another user's identifier
The fix
The backend should enforce object-level authorization on every request, verifying that the authenticated user owns the requested resource before returning data.
How it was found
- Bypass certificate pinning using dynamic instrumentation to view traffic.
- Observe requests that include a client-supplied user identifier.
- With a valid token for User A, change the identifier to point to User B's resource.
- Send the request and observe that User B's data is returned.
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 app gives you a token that proves who you are. But the server also needs to check what you are allowed to see. Here, the server only checked the token and then returned whatever data was asked for by its ID number, without checking if that data belonged to you. So by changing the ID number in a request, you could see someone else's information.
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.