Skip to content
Account takeover Write-up Beginner

How a Default Password Let Me Log Into Almost Anyone’s Account

New accounts were assigned a shared default password and usernames were predictable mobile numbers, while a registration endpoint revealed whether a phone number was already registered. An attacker could enumerate registered users, log in with the default password if it had not been changed, and then change the password to take over the account.

udaydixit987 Follow

Published on medium.com

Bug Bounty

Uday Dixit, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

The target was a web platform the author refers to only as REDACTED.COM, tested during authorised security research and reported through the platform's responsible disclosure or bug bounty programme. The application let users manage profile, vehicle, purchase and other account-related information. Nothing about the application looked unusual at first glance; the flaw was in how accounts were created and authenticated, not in a single exotic endpoint.

Two features matter here. The registration flow created accounts and sent login credentials to the user by SMS. A separate API endpoint checked whether a phone number was already registered, so the frontend could decide whether to continue with registration or send the user elsewhere.

Setup

The report does not describe specific tools, versions, test accounts or roles. The testing was carried out within the scope of authorised security testing, and the author states that the behaviour could be reproduced against multiple existing accounts inside that scope. The platform name, real endpoints, credentials and customer information were deliberately redacted.

Finding it

The first clue came from the registration and account-validation functionality. An API endpoint accepted a phone number and reported whether it was already registered. Submitting a registered number produced a response along the lines of:

Text
User already exists.

That behaviour is reasonable for the frontend, but from a security perspective it turns the endpoint into a user-enumeration vulnerability: an attacker can submit phone numbers and distinguish registered from not registered accounts. On its own this was not enough to take over an account, but it was the first piece of the puzzle.

The second clue was in the registration flow itself. When a new account was created, the platform sent login credentials by SMS. The username was based on the user's mobile number, and the password was not unique: every new account received the same shared default password. Conceptually the credentials looked like this:

Text
Username: <Mobile Number>Password: <Shared Default Password>

The question that followed was what happens if a user never changes that password. If the default remains valid after registration, every account still using it is potentially vulnerable, and unlike a leaked password belonging to one person, a shared default password can affect an entire population of users.

Exploitation

Step 1: enumerate a registered account

The researcher submitted phone numbers to the registration check endpoint. A registered number returned the User already exists. style message, which confirmed the account-existence oracle and gave a way to identify live accounts.

Step 2: derive the username

Because the username was based on the user's mobile number, the enumerated phone number was also the username. No guessing was needed beyond the number itself.

Step 3: authenticate with the shared default password

The researcher tested the credential behaviour within the authorised scope. The default credentials were accepted for accounts that had not changed their initial password. The attack chain the author lays out is:

Text
User Enumeration       ↓Identify Registered Account       ↓Predictable Username       ↓Shared Default Password       ↓Successful Authentication       ↓Access Customer Account       ↓Password Change       ↓Potential Account Takeover

No brute forcing, authentication bypass, malware or phishing was involved: the password was a value the application itself was distributing.

Step 4: read the exposed account data

Once authenticated, the account exposed information such as:

  • Full name
  • Email address
  • Mobile number
  • User/account identifiers
  • Vehicle information
  • Buyer information
  • Transaction-related details
  • Vehicle ownership information

At that point the finding was clearly more than a weak-password issue: it was an account takeover with access to sensitive customer information.

Step 5: change the password

The application provided a password-change function for authenticated users. Because the attacker already knew the existing password, they could authenticate normally and then replace it with one they controlled. That moves the situation from "I can access the account" to "I can potentially take permanent control of the account": the legitimate user could be locked out while the attacker kept access with the new password.

Root cause

The underlying problem was in the platform's authentication design rather than in one user's choice of password. Several individually small weaknesses interacted:

  1. Predictable usernames. The username was based on a mobile number.
  2. Shared default credentials. New accounts received the same default password.
  3. Default credentials remained usable. Users were not sufficiently protected if they never changed the initial password.
  4. User enumeration. The application disclosed whether a phone number was already registered.
  5. Account modification after authentication. An authenticated attacker could change the account password.

Individually, some of these might receive limited severity; together they formed a critical chain. The report does not describe the server-side code, so the exact implementation mistake is not shown. What it does establish is that the initial credential was neither unique nor invalidated after activation, and that the registration check leaked account existence. Existing defences did not stop the chain: there was no forced credential rotation and no generic response on the existence check.

Impact

An attacker who could reach the registration check endpoint could identify registered accounts by phone number, derive the username, and log in to any account that still used the shared default password. From there they could read personal and transactional data (name, email, mobile number, account identifiers, vehicle, buyer, transaction and ownership details) and change the password to lock the legitimate user out. The behaviour was reproducible against multiple existing accounts, so the exposure was systemic rather than limited to one user.

The report hedges the takeover as potential: it applies to accounts that had not changed their initial password, and the lockout is described as something that could potentially happen. The finding was classified as P1 / Critical with a CVSS score of 9.0, and was marked Closed & Rewarded.

Fix

The remediation does not require rebuilding the application. The author recommends:

  • Remove shared default passwords. Every account should have a unique credential or, preferably, a secure account-activation flow instead of an assigned shared password.
  • Make temporary credentials single-use. If temporary credentials are necessary, they should be random, unique, short-lived, single-use and invalidated after activation.
  • Force account activation. A newly created account should not remain permanently accessible with an initial temporary credential.
  • Prevent user enumeration. Instead of explicitly returning:
Text
User already exists

the application should return a generic response that does not reveal whether an account exists.

  • Protect authentication endpoints with rate limiting, credential-stuffing detection, abuse monitoring, login anomaly detection and MFA/OTP where appropriate.
  • Protect password changes. They should require strong authentication and should invalidate existing sessions where appropriate.

Variants to test

  • Registration existence checks. Submit a known-registered and an unknown identifier to any signup or validation endpoint. A positive result is a response that differs in wording, status or timing between the two cases.
  • SMS-delivered initial credentials. Register an account and compare the credentials sent to several new accounts. A positive result is an identical password across accounts, or a password derived from the phone number or another predictable value.
  • Default credential still valid after activation. Log in with the initial credential after the account has been used. A positive result is a successful login without any forced change.
  • Password change without re-authentication. After logging in with a default credential, attempt to set a new password. A positive result is a successful change that locks out the original holder.
  • Username derived from a public identifier. Try logging in with the phone number, email address or other enumerable identifier as the username. A positive result is a valid username format accepted by the login endpoint.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security researcher was testing a website, which the write-up calls REDACTED.COM, as part of an authorised bug bounty programme. In a bug bounty, a company invites outside testers to look for security problems in its systems and report them, usually offering a reward for valid findings. The researcher found that the site handed every new user the same starting password, and that a separate part of the site would tell anyone whether a given phone number belonged to an existing account. Put together, those two small design choices let someone log in to accounts that had never changed their starting password, read the personal details inside, and then change the password, potentially locking the real owner out.

The site let people manage their profile, their vehicle, their purchases and other account information. Nothing looked odd on the surface. The problem was not in one strange page; it was in how accounts were created and how people logged in.

Two features matter for the story. The first is the registration flow: the set of pages and requests a new user goes through to create an account. When an account was created, the site sent the login details to the user by SMS. The second is a small API endpoint that checked whether a phone number was already registered, so the front end (the part of the site you see in the browser) could decide whether to carry on with registration or send the user somewhere else.

An API (application programming interface) is the set of addresses a website's own pages use behind the scenes to ask the server for data or to send data to it. Think of a restaurant: the menu and the waiter are the front end, and the kitchen is the server. The API is the order slip the waiter passes to the kitchen. You normally never see it, but your browser is talking to it all the time. An endpoint is one specific address in that API, like one particular order slip: for example, the one that handles "is this phone number registered?".

The first clue: does this user exist?

The researcher started with the registration and account-validation functionality. There was an API endpoint whose job was to check whether a phone number was already registered. When a number that belonged to an existing account was submitted, the server answered with something along the lines of:

Text
User already exists.

Line by line, in plain words: this is the exact wording of the reply the server sent back. It is a short message, and it says clearly that the phone number you sent is already tied to an account.

Why does that message exist at all? From the application's point of view it makes sense. The front end needs to know whether it should continue with registration or direct the user elsewhere, for example to a login page. The site is being helpful.

From a security point of view, though, this creates a user-enumeration vulnerability. Enumeration means listing things out one by one. Here it means an attacker can send phone numbers to the endpoint and learn, for each one, whether an account exists. The endpoint effectively becomes an account-existence oracle: a machine that answers yes or no about any phone number you ask about.

An attacker could submit phone numbers and distinguish between two groups: numbers that are registered and numbers that are not registered. That is useful to an attacker because it turns a huge, unknown set of phone numbers into a smaller, confirmed list of real accounts worth attacking.

On its own, this was not enough to take over an account. Knowing that an account exists does not give you the password. But it was the first piece of the puzzle.

The second clue: everyone gets the same password

While looking at the registration flow, the researcher noticed something far more interesting. When a new account was created, the platform sent login credentials to the user via SMS. The username was based on the user's mobile number. The password, however, was not unique. It was a shared default password: the same starting password for every new account.

A username is the name you type to identify yourself at login. A password is the secret you type to prove you are that person. A default password is a starting password set by the system rather than chosen by the user, usually with the expectation that the user will change it later.

Conceptually, the credentials looked like this:

Text
Username: <Mobile Number>Password: <Shared Default Password>

Line by line: the first part says the username is the user's mobile number, shown here as a placeholder in angle brackets. The second part says the password is one shared default value, again shown as a placeholder. The two lines are run together in the write-up, but they describe two separate pieces of information: who you are, and the secret you use.

The important question became: what happens if a user never changes that password? If the default password remains valid after registration, then every account that still uses it is potentially vulnerable. And unlike a leaked password belonging to one person, a shared default password can potentially affect an entire population of users. One person's weak password is one person's problem. One shared password is everybody's problem.

Connecting the dots

At this point the attack chain became clear. An attack chain is a series of small steps where each one makes the next possible, like a line of dominoes. The combination of the two issues was much more serious than either issue on its own. The flow was essentially:

Text
User Enumeration       ↓Identify Registered Account       ↓Predictable Username       ↓Shared Default Password       ↓Successful Authentication       ↓Access Customer Account       ↓Password Change       ↓Potential Account Takeover

Line by line, reading down the arrows: first you enumerate, meaning you find out which phone numbers have accounts. That lets you identify a registered account. Because the username is predictable (it is just the phone number), you already know the username. Because the password is shared and known, you have the password too. Those two together give successful authentication, which means the server accepts you as the real user. That gives you access to the customer account. Once inside, you can use the password-change feature. That opens the door to a potential account takeover, where the attacker ends up controlling the account instead of the rightful owner.

Each arrow is a step that only works because the step above it worked. Remove any one of them and the chain breaks. That is why the fix section later attacks several links at once.

The researcher tested the credential behaviour within the scope of authorised security testing. In other words, the testing was allowed by the programme and stayed inside the boundaries it set. The default credentials were accepted for accounts that had not changed their initial password.

Once authenticated, the account exposed information such as:

  • Full name
  • Email address
  • Mobile number
  • User/account identifiers
  • Vehicle information
  • Buyer information
  • Transaction-related details
  • Vehicle ownership information

These are the kinds of details a site holds about its customers. Seeing them from inside someone else's account is the difference between "I guessed a password" and "I am reading a stranger's personal and purchase records". At that point, this was clearly more than a weak-password finding. It was an account takeover vulnerability with access to sensitive customer information.

The password change made it worse

The researcher then looked at what an authenticated user could do with the account. The application provided a password-change functionality. Because the attacker already knew the existing password, they could authenticate normally and then replace the password with one controlled by the attacker.

That changes the situation from "I can access the account" to "I can potentially take permanent control of the account". The legitimate user could potentially be locked out, while the attacker retained access using the newly changed password. This is an important distinction when assessing account takeover vulnerabilities: reading someone's data is bad, but locking them out of their own account and keeping the key is worse, because the problem does not go away when the victim notices.

Why this was a systemic issue

One of the most important observations during the testing was that this was not limited to a single account. The behaviour could be reproduced against multiple existing accounts within the authorised testing scope. Reproduced means the researcher did it again, on purpose, and got the same result.

That suggested the problem was not simply "one user chose a weak password". Instead, the underlying issue was in the platform's authentication design. Authentication is the whole process of proving who you are when you log in. If the design itself hands out a shared secret and confirms which accounts exist, then every user who follows the normal path is exposed, not just the careless ones.

Several individually small weaknesses were interacting with each other:

  1. Predictable usernames. The username was based on a mobile number. Anyone who knows your number can guess your username.
  2. Shared default credentials. New accounts received the same default password. One known password opens many doors.
  3. Default credentials remained usable. Users were not sufficiently protected if they never changed the initial password. The system relied on users doing something it never forced them to do.
  4. User enumeration. The application disclosed whether a phone number was already registered. That is the yes-or-no oracle from the first clue.
  5. Account modification after authentication. An authenticated attacker could change the account password. Once inside, the attacker could make the access permanent.

Individually, some of these issues might receive limited severity. Severity is how serious a finding is judged to be, and it decides how urgently it gets fixed. Together, they created a critical attack chain.

The interesting part: no brute force required

What made this vulnerability particularly interesting was that it did not depend on traditional password brute forcing. Brute forcing means trying many passwords in a row, often with software, until one works. There was no need to guess thousands of random passwords. There was no need to exploit a complicated authentication bypass, meaning a trick that skips the login check entirely. There was no need for malware or phishing, meaning malicious software or fake messages that trick people into giving up their details.

The attack relied on understanding how the application itself handled account creation and authentication. The password was not something an attacker had to discover through brute force. It was a value the application itself was distributing. That completely changes the threat model: the picture of who can attack you and how. When the secret is handed out by the system, the attacker does not need to break in; they just need to read the label.

How I would fix it

The remediation does not require rebuilding the entire application. Remediation means the changes that remove the problem. A few architectural changes can eliminate the attack chain.

Remove shared default passwords

Every account should have a unique credential or, preferably, use a secure account-activation flow instead of assigning a shared password. An account-activation flow is a process where the user proves they control the phone number or email address and sets their own password, rather than being given one that everyone else also has.

Make temporary credentials single-use

If temporary credentials are necessary, they should be:

  • Random
  • Unique
  • Short-lived
  • Single-use
  • Invalidated after activation

In plain words: random means not guessable from your phone number or anything else public. Unique means no two users share one. Short-lived means it stops working after a short time. Single-use means it works once and then is dead. Invalidated after activation means that once the account is properly set up, the old starting credential can never be used again.

Force account activation

A newly created account should not remain permanently accessible using an initial temporary credential.

Prevent user enumeration

Instead of explicitly returning:

Text
User already exists

the application should provide a generic response that does not reveal whether an account exists. Line by line: this is the same kind of message as the first clue, the one that told the researcher a phone number was registered. The fix is to stop sending a message that says yes or no, and send something neutral instead, so the endpoint no longer works as an oracle.

Protect authentication endpoints

Implement appropriate:

  • Rate limiting
  • Credential-stuffing detection
  • Abuse monitoring
  • Login anomaly detection
  • MFA/OTP where appropriate

In plain words: rate limiting caps how many attempts one person or address can make in a period, so guessing at scale becomes slow and visible. Credential-stuffing detection spots attempts that reuse known leaked username and password pairs. Abuse monitoring watches for unusual patterns of use. Login anomaly detection flags logins that look different from a user's normal behaviour. MFA (multi-factor authentication) and OTP (one-time password) ask for a second proof, such as a code sent to the phone, so a password alone is not enough.

Protect password changes

Password changes should require strong authentication and should invalidate existing sessions where appropriate. A session is the period during which the site remembers that you are logged in, usually tracked with a small piece of data the browser stores and sends back with each request. Invalidating sessions means logging out anyone still holding the old access, so a password change actually cuts off an intruder instead of leaving them inside.

Responsible disclosure

The researcher reported the vulnerability through the platform's responsible disclosure or bug bounty programme. Responsible disclosure means telling the owner privately and giving them time to fix it before details become public. The finding was classified as P1 / Critical, with a CVSS score of 9.0. P1 is the highest priority level in many programmes, and CVSS is a standard scoring system where 9.0 is a critical severity. The vulnerability was subsequently marked Closed & Rewarded, meaning the report was resolved and the researcher was paid a reward.

To respect the disclosure process and protect users, the researcher intentionally redacted the platform name, real endpoints, credentials, customer information and other sensitive details from the article. Redacted means removed or hidden, which is why the site is only ever called REDACTED.COM and the credentials appear as placeholders.

Final takeaway

This finding reminded the researcher of something seen repeatedly in security testing: the most dangerous vulnerabilities are not always complicated. Sometimes they are created by a few seemingly harmless design decisions. A shared default password does not necessarily look catastrophic. User enumeration does not necessarily look catastrophic. A password-change feature does not necessarily look dangerous. But when you connect them:

Text
Enumeration     +Predictable Username     +Shared Default Password     +No Forced Credential Rotation     +Password Change     =Account Takeover

Line by line: enumeration gives you the list of real accounts. A predictable username means the phone number is also the login name. A shared default password means you already know the secret. No forced credential rotation means the system never makes users replace that starting password, so it stays valid. A password change lets you replace it with your own. Add those together and you get account takeover. The plus signs are the links in the chain, and the equals sign is the result.

That is where the real impact appears. The lesson for developers is simple: never assume a temporary credential will remain temporary. Always design for the user who never changes the default password, never enables MFA and never revisits their security settings. Because attackers will. And sometimes, all they need is one predictable password.

This vulnerability was discovered during authorised security research and responsibly disclosed through the platform's bug bounty programme. The platform name and sensitive technical details were redacted to respect the disclosure process.

Glossary

  • API: the set of addresses a website's own pages use behind the scenes to ask the server for data or send data to it; the order slips between the front end and the server.
  • Endpoint: one specific address in an API that handles one kind of request, such as checking whether a phone number is registered.
  • Front end: the part of a website you see and interact with in the browser.
  • Server: the computer that stores the data and answers the requests the front end makes.
  • Registration flow: the sequence of pages and requests a new user goes through to create an account.
  • Username: the name you type at login to identify yourself.
  • Password: the secret you type at login to prove you are that person.
  • Default password: a starting password set by the system rather than chosen by the user.
  • Shared default password: one default password used for every new account instead of a unique one per user.
  • User enumeration: learning, one by one, which accounts or identifiers exist, usually by observing how the system answers.
  • Account-existence oracle: an endpoint that answers yes or no about whether an account exists, which an attacker can query repeatedly.
  • Authentication: the process of proving who you are when you log in.
  • Authenticated: having successfully logged in and been recognised by the server.
  • Attack chain: a series of steps where each one makes the next possible, together producing a bigger result than any single step.
  • Account takeover: an attacker gaining control of someone else's account, including the ability to lock the real owner out.
  • Brute forcing: trying many passwords in a row, often with software, until one works.
  • Authentication bypass: a trick that skips or defeats the login check entirely.
  • Malware: malicious software installed on a device.
  • Phishing: fake messages or pages that trick people into giving up their details.
  • Threat model: the picture of who might attack a system and how.
  • Severity: how serious a finding is judged to be, which decides how urgently it is fixed.
  • P1 / Critical: the highest priority and severity level in many bug bounty programmes.
  • CVSS: a standard scoring system for the severity of a security flaw; 9.0 is a very high score.
  • Bug bounty programme: a scheme where a company invites outside testers to find and report security problems, usually for a reward.
  • Responsible disclosure: reporting a flaw privately to the owner and giving them time to fix it before details become public.
  • Redacted: removed or hidden, usually to protect a company or its users.
  • Closed & Rewarded: the status of a report that has been resolved and for which the researcher was paid.
  • Remediation: the changes made to remove a security problem.
  • Account-activation flow: a process where the user proves they control their phone number or email and sets their own password, instead of being given a shared one.
  • Temporary credential: a starting username or password meant to be used briefly and then replaced.
  • Single-use: a credential that works once and then stops working.
  • Short-lived: a credential that stops working after a short period of time.
  • Invalidated: made permanently unusable.
  • Credential rotation: replacing a password or other credential with a new one, often forced by the system.
  • Rate limiting: capping how many attempts one person or address can make in a period.
  • Credential-stuffing detection: spotting login attempts that reuse known leaked username and password pairs.
  • Abuse monitoring: watching for unusual patterns of use that suggest misuse.
  • Login anomaly detection: flagging logins that look different from a user's normal behaviour.
  • MFA (multi-factor authentication): asking for a second proof of identity, such as a code, in addition to a password.
  • OTP (one-time password): a code that is valid for a single login or a short time.
  • Session: the period during which the site remembers that you are logged in, usually tracked with a small piece of data the browser stores and sends back.
  • Invalidating sessions: logging out anyone still holding old access, so a password change cuts off an intruder.

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.