This Mobile App Trusted My Phone More Than It Should Have ⚠️
The mobile API trusted client-supplied device headers for authentication, so removing the bearer token still returned a user's profile data. Because the response was publicly cacheable and keyed only on the device ID, an attacker could retrieve sensitive data for any known or guessed device ID without logging in.
infosecwriteups.com
Published on infosecwriteups.com
Free Link🎈
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 used the client-supplied X-Device-Id header as the sole authentication factor and cache key, without a signed device token or server-side binding to the session.
Impact
An attacker could retrieve other users' emails, phone numbers, wallet balances and internal IDs without authentication, and the public cache could make the exposure persistent and repeatable at scale.
What the attacker needed
Knowledge of a target device ID; no login required; mobile app API access
The fix
The backend should require a valid session or signed device token and should not publicly cache per-user profile responses keyed only on a client-supplied device ID.
How it was found
- Bypass SSL pinning and capture API traffic with Burp while logged in.
- Notice that requests carry X-Device-Id, X-Device-Model, X-OS-Version and X-App-Version headers.
- Find the /mobile/cache/profile endpoint through recon of API subdomains and archived routes.
- Log out, remove the Authorization bearer token, and send the request with only the X-Device-Id header.
- Observe a 200 OK response containing the same user's profile data.
- Check response headers and see Cache-Control: public, max-age=600, then test header manipulation and iterate over device IDs.
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's server believed whatever device name the phone sent, instead of checking a real login token. So anyone who knew or guessed a device name could ask the server for that person's profile and get it back, even without an account. The server also told the content delivery network to store the response publicly, making the data easier to collect at scale.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.