Improper Authentication in Android App
The Android app relied on a client-side 'verified' field in the login response to decide whether an account was locked out. An attacker could intercept and modify the response to change 'verified' from null to true, bypassing the lockout and logging in.
[+] Hello friend, This article will be about a simple Improper Authentication vulnerability that allowed me to bypass the lockout behavior of the application on the users’ accounts. The program was providing several accounts with different roles, One of them was Shipper role.
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 app trusted a client-side field ('verified') from the login response to enforce account lockout, instead of the server checking the account status on each request.
Impact
An attacker could bypass account lockout and log in to a disabled account, potentially accessing the app as that user.
What the attacker needed
Valid credentials for a disabled account; ability to intercept and modify network traffic
How it was found
- Send a login request for a disabled account.
- Intercept the server response containing the JWT and refresh token.
- Modify the 'verified' field from null to true in the response.
- The app accepts the modified response and opens the main activity.
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 server sends back a response that includes a field called 'verified'. The app used this field to decide if your account is locked. The attacker used a tool to intercept the response and changed 'verified' from null to true, so the app thought the account was fine and let them in.
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.