Skip to content
IDOR Write-up Beginner

**🛡️ 6 IDORs, 1 Root Cause: The “Duplicate” Saga of a FinTech API**

The API checked that a request carried a valid token but never checked that the wallet identifier in the request belonged to that token's owner. An attacker with any valid account could swap in another user's wallet identifier and read their transaction history, balance, movement logs and account metadata.

0x_specter Follow

Published on medium.com

Bug Bounty

0x_specter, 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. 5 min read.

Context

The target was a FinTech / e-wallet platform, and the researcher ran a deep-dive security audit against its API. The feature at the centre of the report is the wallet object: the API exposes endpoints that read transaction history, live balance data, financial movement logs (transfers, currency conversion and withdrawals) and internal account metadata and configuration flags. Normally each of those endpoints should return data only for the wallet that belongs to the caller identified by the bearer token.

Every finding in this engagement came back marked as a duplicate. The report is therefore less about a single payout and more about a pattern: six separate endpoints shared one missing check.

Setup

The setup was deliberately small:

  1. A second test account, used as the attacker-controlled identity.
  2. A single Burp Suite Match/Replace rule, configured to swap the researcher's own wallet identifier for a target wallet identifier in outgoing requests.
  3. A valid bearer token for the test account, which the API accepted throughout.

No special tooling beyond Burp Suite is described, and the report gives no versions, endpoint paths, parameter names or response bodies.

Finding it

The researcher's observation was that the API validated authentication but not authorization. A valid bearer token was enough to reach the endpoints, and the wallet ID carried in the request was never checked against the token holder. In other words, the server asked "is this a valid session" and never asked "does this wallet belong to this session".

That gap looked wrong because the wallet identifier is an object reference supplied by the client. If the server trusts it without an ownership check, changing it should return another user's financial data. Once the gap was found on one endpoint, the same gap existed almost everywhere the parameter was reused.

Exploitation

Step 1: Establish a baseline with the test account

The researcher used a second test account and a single Burp Suite Match/Replace rule swapping their own wallet identifier for a target one.

Step 2: Add a Match/Replace rule in Burp Suite

A single Burp Suite Match/Replace rule was configured to replace the researcher's own wallet identifier with a target wallet identifier in outgoing requests. Because the rule sits in the proxy, every request passing through it carried the substituted identifier without further manual editing.

Step 3: Replay the requests against the target wallet

With the rule active, the substituted wallet identifier was sent in requests, and the missing ownership check surfaced across the endpoints. The report does not include the raw requests or responses, so the exact paths, parameters and payloads are not reproduced here.

Step 4: Enumerate endpoints that reuse the parameter

Once the gap was confirmed, the researcher checked every endpoint that shared the same object-reference parameter. The same missing ownership check surfaced across:

  • Transaction history and live balance data
  • Financial movement logs (transfers, currency conversion, withdrawals)
  • Internal account metadata and configuration flags

That produced six endpoints in total, all reachable with the same technique and the same single rule.

Root cause

The API checked who the caller was but never what the caller was allowed to touch. Authentication was enforced through the bearer token; authorization, meaning the binding between the wallet ID in the request and the identity behind the token, was absent. The report describes this as one root cause replicated across the API surface: wherever the wallet identifier parameter was reused, the ownership check was missing too.

Why the existing defences did not stop it is only implied. A valid session was present in every request, so anything that gates on authentication alone would pass. The report does not describe any additional control, such as per-object authorization middleware, that was in place and failed.

Impact

An authenticated attacker holding any valid account could read another user's financial data by changing the wallet identifier: transaction history, live balance, movement logs covering transfers, currency conversion and withdrawals, and internal account metadata and configuration flags. The report frames this as "6 ways to see someone else's money".

The conditions are that the attacker has a valid bearer token and knows or can guess a target wallet identifier. The report does not state how identifiers are formatted or how easily they can be enumerated. It also does not state whether any write operation was possible; the described impact is disclosure.

Fix

The lesson it draws is that every endpoint sharing the same object-reference parameter needs an ownership check binding the supplied wallet ID to the token holder, because a single missed check is rarely isolated.

The duplicate paradox

All six findings were closed as duplicates in one sweep. The researcher treats that as confirmation that the pattern was real and reproducible rather than a one-off, and argues that finding six independent instances of the same authorization gap in a live financial system is a stronger signal of methodology than a single severe bug in isolation. No bounty was paid.

Variants to test

  1. Swap the object reference on every endpoint that takes one. Replace your own wallet, account or card identifier with a second test account's identifier. A positive result is the second account's data being returned rather than an authorization error.
  2. Automate the substitution. Use a proxy Match/Replace rule so every request in a session carries the target identifier, then browse the application normally. A positive result is any page or API response that renders another account's data without manual request editing.
  3. Enumerate sibling endpoints. For each confirmed IDOR, list every endpoint that accepts the same parameter, including history, balance, movement logs, metadata and configuration flags. A positive result is the same data leak repeating across endpoints that share the parameter.
  4. Check read and write separately. The report only demonstrates disclosure; test state-changing operations that reference the same identifier. A positive result is a successful modification of another account's object.
  5. Test identifiers that are not obviously sequential. If numeric IDs work, try UUIDs and other opaque formats to see whether the check is missing entirely or only weak on guessable values. A positive result is disclosure with an identifier you obtained from a legitimate response.

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

What happened, in plain words

A security researcher spent time testing a FinTech platform, meaning a company that handles money through software, in this case an e-wallet. An e-wallet is the digital equivalent of a wallet in your pocket: it holds a balance, records what came in and what went out, and lets you move money around. The researcher found six different places in the platform's software where one person could see another person's financial information. All six were reported, and all six were closed as duplicates, meaning the company said it already knew about them. No money was paid for the findings.

The interesting part is not any single bug. It is that all six came from the same mistake, repeated in six places. Once you understand the mistake, the six findings are almost automatic. That is what this article walks through, from the very beginning.

The pieces you need to know first

Before the story makes sense, a few everyday ideas need explaining.

An API is the part of a website or app that actually fetches and changes data. When you open your banking app and your balance appears, the app did not have the number stored inside it. It asked a server somewhere, and the server answered. That question-and-answer channel is the API. Think of a restaurant: the menu and the waiter are the API, the kitchen is the server, and you are the app. You never walk into the kitchen yourself; you tell the waiter what you want and the waiter brings it back.

An endpoint is one specific thing the API can do. If the API is the menu, each endpoint is one dish: "show my transaction history", "show my balance", "show my transfers". Each endpoint has its own address, and each one expects certain information from the app.

A token (here, a bearer token) is a short piece of text the app sends with every request to prove who is asking. It is like a wristband at an event: you show it at the door and you get in. The server checks the wristband is genuine and then serves the request. The word "bearer" means exactly what it sounds like: whoever bears (carries) the token is treated as the person it belongs to.

Authentication is the server checking that wristband. It answers the question: is this a real, valid session? A session is simply one logged-in visit.

Authorization is a different question: now that I know who you are, are you allowed to see this particular thing? Authentication is the bouncer checking your ticket is real. Authorization is the bouncer checking your ticket is for this concert and not the one next door.

An object reference is a name or number the app uses to point at one specific thing on the server. Your wallet has an identifier, a string of characters that means "this wallet and no other". When the app asks for your balance, it sends that identifier along so the server knows which wallet to look at.

An IDOR (Insecure Direct Object Reference) is the name for the bug that appears when the server takes that identifier from the request and hands back whatever it points to, without checking that the thing belongs to the person asking. It is like a hotel reception that gives out a room key to anyone who says a room number, without checking the name on the booking.

Burp Suite is a tool security testers use to watch and edit the traffic between a browser or app and a server. It sits in the middle like a post office clerk who can read every letter and, if told to, swap a word in each one before sending it on. One of its features, Match/Replace, automatically swaps one piece of text for another in every request that passes through.

The target and the feature

The target was a FinTech / e-wallet platform, and the researcher ran a deep-dive security audit against its API. An audit here means a deliberate, systematic hunt for weaknesses, rather than a quick look.

The feature at the centre of the report is the wallet object. The API exposes endpoints that read:

  • transaction history and live balance data
  • financial movement logs, covering transfers, currency conversion and withdrawals
  • internal account metadata and configuration flags

In plain terms: the platform can show you what you spent, what you have right now, everything that moved in and out of your account, and some background settings about the account itself. Normally each of those endpoints should return data only for the wallet that belongs to the caller identified by the bearer token. If the wristband belongs to you, the answer should be about your wallet, full stop.

Every finding in this engagement came back marked as a duplicate. The report is therefore less about a single payout and more about a pattern: six separate endpoints shared one missing check.

Setting up the test

The setup was deliberately small:

  1. A second test account, used as the attacker-controlled identity. The researcher needed an account they fully controlled, so that any data coming back could be compared against a known baseline.
  2. A single Burp Suite Match/Replace rule, configured to swap the researcher's own wallet identifier for a target wallet identifier in outgoing requests.
  3. A valid bearer token for the test account, which the API accepted throughout.

No special tooling beyond Burp Suite is described, and the report gives no versions, endpoint paths, parameter names or response bodies. That last point matters: the report explains the method, not the exact addresses, so nothing here can be replayed against the live service.

Why this setup? Because the researcher wanted to change exactly one thing, the wallet identifier, and keep everything else identical. If you change one ingredient and the result changes, you know which ingredient caused it. That is the whole logic of a controlled test.

Finding it

The researcher's observation was that the API validated authentication but not authorization. A valid bearer token was enough to reach the endpoints, and the wallet ID carried in the request was never checked against the token holder. In other words, the server asked "is this a valid session" and never asked "does this wallet belong to this session".

That gap looked wrong because the wallet identifier is an object reference supplied by the client. The client is the app or browser on your side, which means the identifier travels through the user's hands and can be edited. If the server trusts it without an ownership check, changing it should return another user's financial data. Once the gap was found on one endpoint, the same gap existed almost everywhere the parameter was reused.

That last sentence is the heart of the whole article. Finding one bug is a finding. Asking "where else does this same input appear?" turns one finding into a map of the system's weak spots.

Exploitation

Step 1: Establish a baseline with the test account

The researcher used a second test account and a single Burp Suite Match/Replace rule swapping their own wallet identifier for a target one.

Why bother? Because you cannot recognise something abnormal until you know what normal looks like. If you have never seen a correct answer, you cannot tell whether a strange answer is a bug or just how the system talks. Capturing your own requests first gives you a reference copy: this is what my data looks like, this is the format, these are the fields.

Step 2: Add a Match/Replace rule in Burp Suite

A single Burp Suite Match/Replace rule was configured to replace the researcher's own wallet identifier with a target wallet identifier in outgoing requests. Because the rule sits in the proxy, every request passing through it carried the substituted identifier without further manual editing.

A proxy is the middle point where Burp Suite sits, between your browser and the server. Every request goes through it, so a rule placed there applies to all of them automatically. The alternative would be editing each request by hand, one at a time, which is slow and easy to get wrong. With the rule in place, the researcher could simply use the application normally and every request would carry the swapped identifier.

Step 3: Replay the requests against the target wallet

With the rule active, requests carried the substituted wallet identifier, and the missing ownership check surfaced across the endpoints.

The report does not include the raw requests or responses, so the exact paths, parameters and payloads are not reproduced here. What matters is the sequence of checks the server did and did not perform: it checked the token, it did not check the wallet. The token was valid, so the door opened; the wallet number was taken at face value, so the wrong drawer was opened.

Step 4: Enumerate endpoints that reuse the parameter

Once the gap was confirmed, the researcher checked every endpoint that shared the same object-reference parameter. To enumerate here means to make a list and work through it. The same missing ownership check surfaced across:

  • Financial movement logs (transfers, currency conversion, withdrawals)

That produced six endpoints in total, all reachable with the same technique and the same single rule. Notice that the researcher did not need six new tricks. One rule, applied everywhere the same identifier appeared, produced six results. That is what makes a root cause worth chasing: the effort is paid once and the findings multiply.

Root cause

The API checked who the caller was but never what the caller was allowed to touch. Authentication was enforced through the bearer token; authorization, meaning the binding between the wallet ID in the request and the identity behind the token, was absent. The report describes this as one root cause replicated across the API surface: wherever the wallet identifier parameter was reused, the ownership check was missing too.

Why the existing defences did not stop it is only implied. A valid session was present in every request, so anything that gates on authentication alone would pass. The report does not describe any additional control, such as per-object authorization middleware, that was in place and failed. Middleware, in case the word is new, is a layer of code that every request passes through before reaching the actual feature; a per-object authorization middleware would be exactly the layer that should have compared the wallet ID to the token holder and refused the mismatch.

The everyday comparison: a building where the front door has a good lock, but every internal office door is open to anyone already inside. The lock is real and it works. It just protects the wrong boundary.

Impact

An authenticated attacker holding any valid account could read another user's financial data by changing the wallet identifier: transaction history, live balance, movement logs covering transfers, currency conversion and withdrawals, and internal account metadata and configuration flags. The report frames this as "6 ways to see someone else's money".

The conditions are that the attacker has a valid bearer token and knows or can guess a target wallet identifier. The report does not state how identifiers are formatted or how easily they can be enumerated. It also does not state whether any write operation was possible; the described impact is disclosure. Disclosure means reading data you should not see, as opposed to changing it. Reading someone's balance and history is already serious in a financial product, because it reveals how much they hold, where they send money and when.

Fix

The lesson it draws is that every endpoint sharing the same object-reference parameter needs an ownership check binding the supplied wallet ID to the token holder, because a single missed check is rarely isolated. In practice that means: before returning anything, the server should look up the wallet, compare its owner to the identity behind the token, and refuse if they differ. And because the same parameter appears in many places, the check belongs in one shared place rather than being copied by hand into each endpoint, where it can be forgotten again.

The duplicate paradox

All six findings were closed as duplicates in one sweep. The researcher treats that as confirmation that the pattern was real and reproducible rather than a one-off, and argues that finding six independent instances of the same authorization gap in a live financial system is a stronger signal of methodology than a single severe bug in isolation. No bounty was paid.

That is worth sitting with for a moment. "Duplicate" sounds like a rejection, and in terms of payment it was one. But a duplicate also means the company had already seen the same thing, which confirms the researcher found something real. And six independent instances of one pattern show a repeatable method, not a lucky guess.

Variants to test

If you want to try this kind of thinking yourself, these are the directions the report points to. Only test systems you are authorised to test, such as a bug bounty programme's in-scope targets or your own lab.

  1. Swap the object reference on every endpoint that takes one. Replace your own wallet, account or card identifier with a second test account's identifier. A positive result is the second account's data being returned rather than an authorization error. A 200 is the standard "here you go" answer from a web server; an authorization error would be the server saying no.
  2. Automate the substitution. Use a proxy Match/Replace rule so every request in a session carries the target identifier, then browse the application normally. A positive result is any page or API response that renders another account's data without manual request editing.
  3. Enumerate sibling endpoints. For each confirmed IDOR, list every endpoint that accepts the same parameter, including history, balance, movement logs, metadata and configuration flags. A positive result is the same data leak repeating across endpoints that share the parameter.
  4. Check read and write separately. The report only demonstrates disclosure; test state-changing operations that reference the same identifier. A positive result is a successful modification of another account's object.
  5. Test identifiers that are not obviously sequential. If numeric IDs work, try UUIDs and other opaque formats to see whether the check is missing entirely or only weak on guessable values. A UUID is a long random-looking identifier that is hard to guess; if even those work when taken from a legitimate response, the problem is the missing check, not guessability. A positive result is disclosure with an identifier you obtained from a legitimate response.

Glossary

  • API: the channel through which an app asks a server for data or asks it to change something.
  • Endpoint: one specific operation an API offers, such as "show balance" or "show transaction history".
  • FinTech: a company that provides financial services through software, such as an e-wallet.
  • E-wallet: a digital wallet that holds a balance and records money moving in and out.
  • Token (bearer token): a piece of text sent with each request to prove who is asking; whoever carries it is treated as its owner.
  • Session: one logged-in period of use.
  • Authentication: checking that a request comes from a valid, logged-in user.
  • Authorization: checking that this user is allowed to access this particular thing.
  • Object reference: a name or number in a request that points at one specific item on the server, such as a wallet identifier.
  • IDOR (Insecure Direct Object Reference): a bug where the server returns or changes an object named in the request without checking that it belongs to the requester.
  • Parameter: a named piece of information sent with a request, such as a wallet identifier.
  • Burp Suite: a tool that sits between your browser and a server so you can watch and edit the traffic.
  • Proxy: the middle point where such a tool intercepts requests and responses.
  • Match/Replace rule: an automatic substitution applied to every request passing through the proxy.
  • Replay: sending a captured request again, possibly with small changes.
  • Enumerate: to make a list and work through it systematically.
  • Root cause: the single underlying mistake that produces several visible symptoms.
  • Middleware: a layer of code that every request passes through before reaching the feature itself.
  • Disclosure: reading data you are not supposed to see, as opposed to changing it.
  • 200 response: the standard web server answer meaning the request succeeded.
  • UUID: a long, random-looking identifier that is hard to guess.
  • Duplicate: a report closed because the company had already received or recorded the same issue.
  • Bounty: a payment made by a company for a valid security report.

More by 0x_specter

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.