Skip to content
Business logic Write-up Beginner

Password Bypass and Something Else…

The site checked the account password only in the browser, so the server accepted a bank-detail change whenever the client sent back a success response. An attacker could change bank details without knowing the correct password.

Vibhurushi Chotaliya Follow

Published on medium.com

Bounty$600 View original

{{media:0}}

Vibhurushi Chotaliya, 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. 4 min read.

Context

The target is a private company referred to in the write-up as xyz Pvt. Ltd. (the researcher also writes it as xys Pvt. Ltd. once). The feature involved is the bank details section of the account: after logging in, a user can add or change bank details, and the application asks for the account password before accepting the change. The write-up does not name the application, the endpoint, the parameter names or the HTTP method used.

The author is Vibhurushi Chotaliya, and the post is titled "Password Bypass and Something Else…".

Vibhurushi Chotaliya
Vibhurushi Chotaliya From the original on medium.com

Setup

The only tool mentioned is Burp, used as an intercepting proxy to catch the request and its response. The precondition is an authenticated session on the account, because the bank details feature is reached after login. No versions, roles or additional accounts are described.

Finding it

The researcher noticed that the password check for changing bank details is decided by the response body. When the correct password is sent, the response is a JSON object with a success status; when a wrong password is sent, the response is a JSON object with an error status. Because the client appears to trust that body to decide whether the password was correct, the researcher tried replacing the error response with the success response and found that the password protection could be bypassed.

Exploitation

Step 1: Reach the password prompt

After login, adding bank details causes the application to ask for the account password.

Step 2: Capture a successful check

The researcher entered the correct password and caught the request in Burp. The response was:

JSON
{"status":"success","data":{"message":"Authentication successful."}}

With that response, the bank details could be changed.

Step 3: Capture a failed check

The researcher logged in again, entered a wrong password and caught the request in Burp. The response was:

JSON
{"status":"error","data":"Incorrect password. Please try again."}

Step 4: Replace the failed response

With a wrong password again, the researcher caught the request in Burp, received the same error response:

JSON
{"status":"error","data":"Incorrect password. Please try again."}

and replaced it with the success response:

JSON
{"status":"success","data":{"message":"Authentication successful."}}

That bypassed the password protection.

Root cause

The password check appears to be decided by the response body: the researcher replaced the error response with the success response and the password protection was bypassed. The write-up does not show the request itself, so the exact server-side behaviour is not documented.

Impact

An attacker who already has an authenticated session can change the bank details on the account without knowing the account password. The researcher reported the issue on 06 Feb 2018 to a bug bounty platform whose name is not disclosed. The platform closed the report, and the researcher was unable to convince them of the impact. The report status is not disclosed.

Disclosure and outcome

After finding the old report again, the researcher reported the issue directly to xyz Pvt. Ltd. through its support address on 10 March 2019. On 11 March 2019 the company replied that it was looking into the matter. On the morning of 12 March 2019 the researcher received a mail from the bug bounty platform showing the report changed from closed to accepted, with a reward of 600 USD. The report was accepted after one year and one month. The researcher's advice is that if a report has significant impact and is closed without being resolved, contacting the private organisation directly can produce an answer.

Fix

The fix should be server-side: the bank details change must be authorised by the server after verifying the password, not by a client-supplied or client-interpreted status field, and the client should not be able to turn a failed check into a successful one by editing the response.

Variants to test

  1. Any sensitive action that asks for a password again (email change, payout account change, API key rotation): intercept the failed response and replace it with the success body. A positive result is that the action completes without the correct password.
  2. Actions gated by a JSON status field: change error to success and see whether the UI proceeds. A positive result is that the next request is sent and accepted by the server.
  3. Actions where the client hides a form or button on failure: re-enable it or send the follow-up request directly. A positive result is a server response that performs the change.
  4. Replay the successful change request from a session where the password step was never completed. A positive result is that the server accepts it, showing the check is not tied to the change on the server side.

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. 10 min read.

What happened, in plain words

A security researcher, Vibhurushi Chotaliya, found a way to change the bank details saved on an account without knowing the account password. The site asked for the password before letting the change through, but the decision about whether the password was right appeared to depend on a small message the server sent back. By editing that message, the researcher could turn a "wrong password" answer into a "correct password" answer and carry on.

He first reported it to a bug bounty platform in February 2018. The platform closed the report. More than a year later he sent the same issue straight to the company, and within days the platform changed the report from closed to accepted and paid a 600 USD reward.

Vibhurushi Chotaliya
Vibhurushi Chotaliya From the original on medium.com

The picture above is the author's profile image from the post.

The pieces you need to know

Before walking through the steps, here are the ideas that come up. Each one is explained from scratch.

A web application. A program you use through your browser. You type into forms, click buttons, and the browser sends messages to a server somewhere else. The server does the real work and sends answers back.

A request and a response. When you click a button, your browser sends a request to the server: "please save these bank details". The server sends back a response: "done" or "no, wrong password". Think of it like posting a form to an office and getting a letter back. The request is your envelope going out; the response is the letter coming back.

JSON. A simple way of writing data as text so that programs can read it easily. It looks like a list of labels and values in curly brackets, for example {"status":"success"}. Humans can read it too, which is exactly why it matters here.

An API. The part of a website that answers these requests with data rather than with a web page. When the page asks "is this password correct?", it is really asking an API, and the API replies in JSON.

An intercepting proxy. A tool that sits between your browser and the server, like a postal worker who opens every envelope in both directions and lets you rewrite the contents before passing it on. The researcher used a tool called Burp for this. It lets you pause a request or a response, look at it, change it, and then send it on.

A session and being logged in. After you log in, the server gives your browser a small piece of proof, often called a cookie or a token, that it attaches to every later request. That is how the server knows it is still you and does not ask for your password on every page. Being "authenticated" means you have already logged in and hold that proof.

A password re-check. Many sites ask for your password again before a sensitive action, such as changing where money is sent. The idea is that even if someone is sitting at your unlocked computer, they cannot redirect your money without the password.

An authentication bypass. A flaw where a check meant to prove who you are, or to confirm a password, can be skipped. Here the check existed but could be fooled.

Client side and server side. "Client side" means the code running in your browser. "Server side" means the code running on the company's machine. A rule enforced only on the client side can usually be changed by the person using the browser, because the browser is under their control. A rule enforced on the server side cannot.

The target and the feature

The company is referred to in the post as xyz Pvt. Ltd. (once written as xys Pvt. Ltd.). The feature is the bank details section of an account. After logging in, a user can add or change bank details, and the application asks for the account password before accepting the change. The post does not name the application, the address of the request, the names of the fields sent, or which HTTP method was used.

Setting up

The only tool mentioned is Burp, used to catch the request and its response. The starting point is an account you are already logged into, because the bank details feature is reached after login. No versions, user roles or extra accounts are described.

Finding it

The researcher noticed that the password check for changing bank details was decided by the response body. When the correct password was sent, the response was a JSON object with a success status. When a wrong password was sent, the response was a JSON object with an error status. Because the page appeared to trust that body to decide whether the password was correct, he tried replacing the error response with the success response, and found the password protection could be bypassed.

Walking through the steps

Step 1: Reach the password prompt

After logging in, adding bank details causes the application to ask for the account password. This is the re-check described above: the site wants proof that the person making the change knows the password.

Step 2: Capture a successful check

The researcher entered the correct password and caught the request in Burp. The response was:

JSON
{"status":"success","data":{"message":"Authentication successful."}}

Line by line:

  • The outer curly brackets hold one object, a set of labelled values.
  • "status":"success" is the label status with the value success. This is the field the page reads to decide whether to go ahead.
  • "data" holds the details of the answer. Here it contains "message":"Authentication successful.", a human-readable note saying the password was accepted.

Why this step: the researcher needed to see what a genuine "yes" looks like, so he could copy it later. With that response, the bank details could be changed.

Step 3: Capture a failed check

The researcher logged in again, entered a wrong password and caught the request in Burp. The response was:

JSON
{"status":"error","data":"Incorrect password. Please try again."}

Line by line:

  • "status":"error" is the same label as before, now with the value error. This is what tells the page the password was wrong.
  • "data" here is just a piece of text, "Incorrect password. Please try again.", rather than a nested object. The shape differs from the success case, but the important part is the status value.

Why this step: to confirm that a wrong password produces a predictable, clearly marked failure, and to see exactly what the page receives when it decides to block the change.

Step 4: Replace the failed response

With a wrong password again, the researcher caught the request in Burp, received the same error response:

JSON
{"status":"error","data":"Incorrect password. Please try again."}

and replaced it with the success response:

JSON
{"status":"success","data":{"message":"Authentication successful."}}

Line by line:

  • The first block is the real answer from the server: the password was wrong.
  • The second block is the answer the researcher wrote by hand, copying the shape of the genuine success from Step 2.
  • The only meaningful change is error becoming success. The page reads that value and believes the password was correct.

Why this step: the page appeared to decide whether to continue based on the response. By handing the page a "yes" it expected, the researcher made it continue. That bypassed the password protection.

Why it worked

The password check appeared to depend on the response body. The front end reads the status field of the response and treats success as proof that the password was correct. The post does not show the request itself, so the exact server-side behaviour is not documented.

A useful comparison: imagine a bank clerk who asks a colleague "did this customer give the right password?" and then, on hearing "yes", hands over the money without checking anything else. If the customer can intercept the colleague's note and rewrite "no" as "yes", the clerk is fooled. The fix is for the clerk to check with the colleague directly, in a way the customer cannot edit.

What someone could do with it

An attacker who already has an authenticated session can change the bank details on the account without knowing the account password. The post does not describe any further effect, such as where the bank details are used or what funds or data could be redirected.

Reporting it, and what happened next

The researcher reported the issue on 06 Feb 2018 to a bug bounty platform whose name is not disclosed. The platform closed the report, and he was unable to convince them of the impact. The report status is not disclosed.

After finding the old report again, he reported the issue directly to xyz Pvt. Ltd. through its support address on 10 March 2019. On 11 March 2019 the company replied that it was looking into the matter. On the morning of 12 March 2019 he received a mail from the bug bounty platform showing the report changed from closed to accepted, with a reward of 600 USD. The report was accepted after one year and one month.

His advice is that if a report has significant impact and is closed without being resolved, contacting the private organisation directly can produce an answer.

How it should be fixed

The post does not state what was changed. The fix should be server-side: the bank details change must be authorised by the server after verifying the password, not by a client-supplied or client-interpreted status field, and the client should not be able to turn a failed check into a successful one by editing the response.

Other places to look for the same pattern

  1. Any sensitive action that asks for a password again (email change, payout account change, API key rotation): intercept the failed response and replace it with the success body. A positive result is that the action completes without the correct password.
  2. Actions gated by a JSON status field: change error to success and see whether the UI proceeds. A positive result is that the next request is sent and accepted by the server.
  3. Actions where the client hides a form or button on failure: re-enable it or send the follow-up request directly. A positive result is a server response that performs the change.
  4. Replay the successful change request from a session where the password step was never completed. A positive result is that the server accepts it, showing the check is not tied to the change on the server side.

Glossary

  • API: the part of a website that answers requests with data rather than web pages, usually in a format like JSON.
  • Authentication: proving who you are, usually by logging in.
  • Authentication bypass: a flaw that lets someone skip or fool a check meant to prove identity or confirm a password.
  • Authenticated session: the state of being logged in, where your browser holds proof (a cookie or token) that the server accepts on later requests.
  • Bug bounty platform: a service where researchers report vulnerabilities and companies pay rewards for valid ones.
  • Burp: an intercepting proxy tool that lets you pause, inspect and edit requests and responses between browser and server.
  • Client side: code running in your browser, under your control.
  • Cookie: a small piece of data a site stores in your browser, often used to keep you logged in.
  • Endpoint: the specific address a request is sent to.
  • HTTP method: the type of request, such as GET or POST, telling the server what kind of action is intended.
  • Intercepting proxy: a tool that sits between browser and server and lets you read and change the traffic.
  • JSON: a text format for data made of labels and values in curly brackets.
  • Password re-check: asking for the password again before a sensitive action, to confirm the person present knows it.
  • Request: the message your browser sends to the server.
  • Response: the message the server sends back.
  • Response body: the content of the response, as opposed to its headers or status code.
  • Root cause: the underlying reason a flaw exists.
  • Server side: code running on the company's machine, which the user cannot edit.
  • Session: the period during which the server treats your requests as coming from the same logged-in user.
  • Token: a piece of proof, similar to a cookie, that your browser sends to show it is still you.
  • Vulnerability: a weakness in a system that can be used to do something the owner did not intend.

More by Vibhurushi Chotaliya

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.