Skip to content
Business logic Write-up Intermediate

The Inside Story of Finding a Reverse Transaction Vulnerability in a Financial Application

The money transfer feature used two fields to identify sender and recipient accounts, and swapping their values reversed the transaction direction. An attacker could receive money from a victim's account instead of sending it.

Raja Uzair Abdullah Follow

Published on medium.com

Hello everyone, my name is Raja Uzair Abdullah and I’m an Application Security Engineer. With my focus on penetration testing, I have had the opportunity to report Security vulnerabilities with top tech giants such as Google, Microsoft, Apple, Sony, Stripe, and more.

Raja Uzair Abdullah, 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. 3 min read.

Context

This is an account of a logic flaw found in the money transfer feature of a mobile banking application. The feature under test is Send Money, reached from the Payment section of the app. In normal use it moves funds from the logged-in user's account to another account identified by a mobile or account number.

The author, Raja Uzair Abdullah, is an application security engineer who reports vulnerabilities to organisations including Google, Microsoft, Apple, Sony and Stripe. The application in question was an in-house product of his employer, so the finding was part of his job rather than a bounty submission, and no external reward was paid.

The weakness class is a logic flaw in payment handling: swapping the two account identifier fields reversed the direction of the transfer.

Setup

  • Target: a mobile banking application, tested during a security assessment.
  • Tooling: Burp, used to proxy the mobile application's traffic.
  • Precondition: a valid set of credentials for the application, used to log in before reaching the payment flow.
  • No specific app version, platform build or server stack is given in the write-up.

Finding it

After proxying the app through Burp and logging in with valid credentials, the author navigated to the Payment section and selected Send Money. He entered a valid mobile/Account number and confirmed the amount he wanted to transfer, then intercepted the resulting request.

The intercepted request contained two fields that caught his attention:

  • referenceNumber, which by its name identifies the account sending the money.
  • destinationReferenceNumber, which by its name identifies the account receiving the money.

The request contained both fields, and swapping their values reversed the flow.

Exploitation

Step 1: Capture the legitimate transfer request

With Burp intercepting, the author submitted a transfer to a valid mobile/Account number for a chosen amount. The captured request is the original, normal-behaviour request:

HTTP
Original Request

The request contained the referenceNumber and destinationReferenceNumber fields.

Step 2: Swap the two reference fields

The author exchanged the values of referenceNumber and destinationReferenceNumber, so that the field naming the sender now carried the value that had named the recipient, and vice versa. The modified request is shown as the ambiguous-behaviour request:

HTTP
Modified Request

Step 3: Observe the result

The server answered the modified request with 200 OK and the message Request Successful. The flow was reversed: instead of sending money from his account to the other account, the author was able to receive money into his own account.

That is the whole of the exploitation. No authentication bypass, no injection and no special tooling beyond an intercepting proxy were needed; the only change was the order of two values in an otherwise valid request.

Root cause

Swapping the two reference fields caused the server to process the transfer in the opposite direction, returning 200 OK with Request Successful. Swapping the values therefore inverted the transaction rather than being rejected.

The write-up does not describe the server-side code, so the exact implementation cannot be confirmed from it.

Impact

An authenticated user of the app could turn the send money feature around and pull funds from another account into their own, using only a valid login and a proxying tool. The author describes the transactions as unauthorised and reversed. The write-up does not state how the credited balance was reconciled, whether limits applied, or whether the issue was reproduced against real funds; those details are not given.

Fix

Variants to test

Closing note

The author's own summary is that security has to be considered when building and testing applications, and that users should be cautious with financial transactions in mobile apps. The finding is a reminder that payment logic deserves testing at the level of field semantics, not just at the level of authentication and input validation.

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store From the original on medium.com
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

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

What happened, in plain words

A security tester was asked to check a mobile banking app. In that app there is a feature called Send Money, which lets you move money from your own account to someone else's account. He found that by swapping two values in the message the app sends to its server, the flow was reversed: instead of sending money from his account, he was able to receive money into his own account.

That is the whole story. No clever hacking tools, no breaking passwords, no guessing codes. Just swapping two numbers in a request that the app itself had already built for him.

This article walks through that finding from zero. You only need to be comfortable using a browser and a computer. Every technical word is explained the first time it appears, and there is a glossary at the end.

The person and the setting

The author is Raja Uzair Abdullah, an application security engineer. That job means he is paid to try to break software on purpose, before criminals do, and then tell the owners how to fix it. He says he has reported vulnerabilities to organisations including Google, Microsoft, Apple, Sony and Stripe.

The app in this story was an in-house product of the company he worked for. So this was not a bug bounty (a public programme where companies pay strangers for finding bugs). It was part of his normal job, and he received no external reward for it.

A few terms before we go further:

  • Vulnerability: a weakness in software that someone can use to make it do something the owners did not intend.
  • Logic flaw: a vulnerability that is not about crashing the program or breaking its encryption, but about the program's rules being wrong or incomplete. The software does exactly what it was told, but what it was told allows something silly. Think of a form that asks for your age and accepts "-5": nothing is broken technically, the rule is just missing.
  • Payment tampering: changing the details of a payment (who pays, who receives, how much) while it is in transit, so the system processes something different from what the user intended.

What the app does and how the tester looked inside it

A mobile banking app is a program on a phone that talks to a bank's computers over the internet. When you tap a button, the app does not do the banking itself. It sends a message to a server (a computer owned by the bank) and the server does the real work.

That message is called a request, and the server's reply is called a response. The set of rules for how these messages are shaped is called an API (Application Programming Interface). A simple comparison: an API is like a restaurant menu and waiter. You do not walk into the kitchen; you pick from a fixed list of dishes, the waiter carries your order in a standard way, and the kitchen sends back a standard plate. The menu is the API: it defines what you can ask for and how you must ask.

Normally the app builds these requests for you and you never see them. To see them, the tester used a tool called Burp (short for Burp Suite). Burp works as a proxy: it sits between the phone and the internet, and every message the app sends passes through it. Because it sits in the middle, it can show you each message and also let you pause it, edit it, and then send it on. Think of a postal worker who is allowed to open your letters, read them, change a word, and then deliver them.

To use the app at all, the tester needed a valid set of credentials: a real username and password for the app. He logged in normally, like any customer.

Step by step: finding the flaw

  1. He set up Burp so the app's traffic went through it.
  2. He logged in to the app with valid credentials.
  3. He went to the Payment section and chose Send Money.
  4. He entered a valid mobile or account number as the recipient, and confirmed the amount he wanted to transfer.
  5. He intercepted the request that the app produced at that moment, so it paused in Burp instead of going straight to the server.

Why intercept at this point? Because this is the exact moment the app tells the server "move this much money from me to that person". If there is a weakness in how the server decides who pays and who receives, it will be visible in this message.

The two fields that mattered

Inside the intercepted request, two fields stood out:

  • referenceNumber, which by its name identifies the account that is sending the money.
  • destinationReferenceNumber, which by its name identifies the account that is receiving the money.

A field here means one named piece of information inside the request, like one box on a form. The name is the label, the value is what is written in the box.

Both fields appeared in the intercepted request. The client is the device in your hand; the server is the bank's computer. A key idea in security is that anything coming from the client can be changed by the person holding the phone, because the phone belongs to them. So a well-built server treats client-supplied values as suggestions to be checked, never as facts to be trusted.

The original request

The tester captured the normal, unmodified request. In the write-up it is labelled as the original request, showing normal behaviour:

HTTP
Original Request

The write-up labels this as the original request, showing normal behaviour. The write-up presents it under that label rather than reproducing the full message, so the individual headers and values are not given.

The modified request

Here is the change. The tester swapped the values of the two fields: the value that had been in referenceNumber was put into destinationReferenceNumber, and the value that had been in destinationReferenceNumber was put into referenceNumber. The write-up shows this as the modified request, with ambiguous behaviour:

HTTP
Modified Request

Line by line, in plain words:

  • The tester swapped the values of the two fields.

Why do this? Because the field names describe an intention ("this is the sender", "this is the receiver"), and the tester wanted to know whether the server checks that intention against reality, or just follows it.

The result

The server replied with 200 OK and the message Request Successful.

A 200 OK is an HTTP status code. HTTP is the language browsers and apps use to talk to servers, and every response carries a three-digit status code saying how it went. 200 means "fine, done". Codes starting with 4 (like 400 or 403) mean "your request was bad or you are not allowed". So a 200 here means the server did not see anything wrong with the swapped request at all.

The effect was that the flow was reversed. Instead of sending money from his account to the other account, the tester was able to receive money into his own account. The feature did the opposite of its name.

That is the entire exploitation. There was no authentication bypass (no getting in without a password), no injection (no sneaking commands into the app through input), and no special tooling beyond the intercepting proxy. The only change was the order of two values in an otherwise valid request.

Why it worked

This is the part that matters if you build software. Swapping the two reference fields caused the server to process the transfer in the opposite direction.

Two checks were missing:

Swapping the values inverted the transaction instead of being rejected. Authorisation means deciding whether a logged-in user is allowed to do a particular thing; authentication only proves who they are.

The write-up does not describe the server-side code, so the exact implementation cannot be confirmed from it.

Who was affected

The author, logged in with valid credentials and using a proxy, was able to reverse the transfer. The author describes the transactions as unauthorised and reversed.

The write-up does not state how the credited balance was reconciled, whether limits applied, or whether the issue was reproduced against real funds.

How it should be fixed

Similar things to test

If you ever test a payment feature, these are variations on the same idea. Each one asks: does the server check this, or does it just believe the client?

A replay means sending a request you captured earlier a second time, possibly with small edits, to see whether the server accepts it again.

The author's closing note

His own summary is that security has to be considered when building and testing applications, and that users should be cautious with financial transactions in mobile apps. The finding is a reminder that payment logic deserves testing at the level of what each field means, not just at the level of logins and input checking.

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store From the original on medium.com
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store

Glossary

  • API (Application Programming Interface): the agreed set of rules for how one program asks another for something and how the answer comes back, like a menu and waiter in a restaurant.
  • Application security engineer: a person whose job is to find and fix weaknesses in software before attackers do.
  • Authentication: proving who you are, usually with a username and password.
  • Authorisation: deciding whether a user who is already identified is allowed to perform a particular action.
  • Bug bounty: a public programme in which organisations pay people for reporting vulnerabilities to them.
  • Burp (Burp Suite): a tool that sits between an app and the internet, letting you see, pause and edit the messages they exchange.
  • Client: the device or program in the user's hands, such as a phone app or browser.
  • Credentials: the details used to log in, such as a username and password.
  • Debit: taking money out of an account.
  • Field: one named piece of information inside a request, like one box on a form.
  • HTTP: the language apps and browsers use to exchange requests and responses with servers.
  • Injection: a class of attack where an attacker sneaks commands or code into input so the system runs them.
  • Logic flaw: a weakness where the software follows its rules correctly but the rules themselves are wrong or incomplete.
  • Payment tampering: changing payment details in transit so the system processes something different from what the user intended.
  • Proxy: an intermediary that sits between two parties and passes messages along, and can inspect or alter them on the way.
  • Reference number: in this app, a field naming an account involved in a transfer; referenceNumber names the sender and destinationReferenceNumber names the recipient.
  • Replay: sending a previously captured request again, sometimes with small changes, to see whether the server accepts it.
  • Request: a message a client sends to a server asking it to do something.
  • Response: the server's reply to a request.
  • Server: the computer, usually owned by the organisation, that does the real work behind an app.
  • Session: the server's memory of the fact that you are logged in, usually carried by a cookie or token the app sends with each request, like a wristband at an event.
  • Status code: a three-digit number in an HTTP response saying how the request went; 200 means success, codes starting with 4 mean the request was bad or not allowed.
  • Vulnerability: a weakness in software that someone can use to make it behave in a way its owners did not intend.

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.