Discovering a High-Severity Bug in a Major Mobile Distribution Company
A password change endpoint authorised requests using only a user ID and did not require the current password. An attacker with a low-privileged account could change the password of an admin account and take it over.
Published on medium.com
In the realm of cybersecurity, every now and then, one stumbles upon vulnerabilities that can have significant implications. Recently, I encountered such a scenario while conducting a security assessment for a large mobile distribution company.
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 password change endpoint trusted a client-supplied user ID for authorisation and did not verify the current password.
Impact
An attacker could take over admin accounts and control the system, access sensitive data, and manipulate transactions; the text says the issue was patched within days.
What the attacker needed
A low-privileged account; ability to intercept requests; knowledge of the admin user ID
The fix
The endpoint should require the current password and verify that the authenticated user is allowed to change the target account's password; the text says it was patched.
How it was found
- Enumerate subdomains and review source code to find a credential comment.
- Log in to the subdomain and brute force a valid credential.
- Intercept a change password request in Burp Suite.
- Modify the request to use the admin account's user ID and a new password.
- Send the request and log in with the admin account using the new password.
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.
A password change form should ask for your old password before letting you set a new one. Here, the website only checked a number that identifies the user, and that number could be swapped for someone else's. So a normal user could change an admin's password and log in as that admin.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.