Skip to content
Account takeover Write-up Intermediate

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.

anonymousshetty2003 Follow

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.

Anonymousshetty, on medium.com

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

  1. Enumerate subdomains and review source code to find a credential comment.
  2. Log in to the subdomain and brute force a valid credential.
  3. Intercept a change password request in Burp Suite.
  4. Modify the request to use the admin account's user ID and a new password.
  5. 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.

More by anonymousshetty2003

View all

13 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.