Skip to content
Business logic Disclosed report Intermediate

Bypassing Bronze Partner Wallet Restriction to Accept Trips with Negative Balance

A business logic flaw let Bronze-tier partners with negative wallet balances bypass platform restrictions and accept trips. By chaining three backend endpoints, a negative-balance driver could reset availability and submit bids despite wallet limitations.

bugbountywithmarco Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Disclosed after 6 months

Summary by the program

@bugbountywithmarco discovered a business logic flaw that allowed Bronze-tier partners with negative wallet balances to bypass platform restrictions and accept trips. By chaining three backend endpoints GET /v2/:city_id/bookings, PUT /api/v2/driver/update/location (with any trip_id), and POST /api/v2/offer/bid a negative balance driver could reset their availability and successfully submit bids, enabling unauthorized access to trips despite wallet limitations.

The original report as published on HackerOne, by bugbountywithmarco. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Bykea's API at https://api.bykea.net, and the feature under test is the partner (driver) trip flow: browsing available bookings, updating availability and location, and bidding on trips. The program's summary describes a business logic flaw in which partners on the Bronze tier who hold a negative wallet balance can bypass the platform restriction that should stop them from accepting trips.

The researcher, bugbountywithmarco, chained three backend endpoints. The first reads the bookings available in a city:

HTTP
GET /v2/:city_id/bookings

The second updates the driver's location, and the report notes it was called with any trip_id:

HTTP
PUT /api/v2/driver/update/location

The third submits a bid on a trip:

HTTP
POST /api/v2/offer/bid

By chaining these calls, a driver with a negative balance could reset their availability and then successfully submit bids. In effect the wallet restriction was enforced somewhere in the normal flow but not across this combination of endpoints, so the driver regained access to trips despite the balance limitation.

The report was rated medium severity with a CVSS score of 6.5, classified as a business logic error, and disclosed on 13 June 2025. No bounty amount is given, and the summary does not describe the fix.

Root cause

The report does not describe the underlying cause; the chain of three endpoints was enough to reset availability and submit bids. The location update endpoint was called with any trip_id, and the chain reset the driver's availability. Once availability was reset, the bid endpoint accepted the submission.

Impact

A Bronze-tier partner whose wallet balance is negative is supposed to be blocked from taking trips. With this chain, such a partner can reset availability and submit bids, gaining access to trips the platform intended to deny. The report frames this as unauthorised access to trips despite wallet limitations. The report does not describe any further consequence, such as payouts or effects on other users.

How this kind of bug works

Business logic flaws arise when a rule that the product enforces in one place is not enforced consistently everywhere the rule matters. Eligibility checks (wallet balance, account tier, KYC status, suspension) are often implemented in the handler for the final action, such as accepting a trip, while helper endpoints that mutate state (availability, location, presence) are treated as harmless and left unchecked. An attacker who can call those helpers directly, out of order, or with identifiers that do not belong to them can put the account into a state the main flow would never allow, and the final action then succeeds because its own preconditions now look satisfied.

The second ingredient is missing ownership and state validation: an endpoint that accepts an arbitrary trip_id and acts on it without confirming the caller's relationship to that trip lets the client drive server state in ways the UI never would. Defences are server-side re-validation of every precondition on every endpoint that can affect eligibility, binding actions to the authenticated driver and their own trips, and treating client-supplied identifiers as untrusted.

How to test for it

  1. Map the workflow. Identify the rule being enforced (balance, tier, limits) and every endpoint involved in reaching the restricted action: listing, availability, location, bidding, acceptance.
  2. Establish a baseline. With an account in the restricted state, confirm the final action is refused and note the exact error.
  3. Probe the helper endpoints individually. Call the availability and location updates directly, outside the normal sequence, and observe whether they succeed while the account is restricted.
  4. Vary identifiers. Send a trip_id that belongs to another driver, a completed trip, or a random value, and see whether the server accepts it.
  5. Replay the chain. After the helper calls, retry the restricted action. A positive result is the final action succeeding when the baseline refused it, with the state change visible in the account.
  6. Check ordering and repetition. Try the calls in reverse order, repeated, and interleaved with reads, since some checks only run on the first request.

Common false positives: the client hiding a button while the server still correctly refuses the action; a stale cached response making it look as though a bid was accepted; and test accounts whose tier or balance was changed by support, so the restriction was never actually in force. Confirm the outcome on the server side, for example by re-reading the trip or bid state, before reporting.

How it is fixed

Enforce eligibility server-side on every endpoint that can move an account towards the restricted action, not only on the final one. Re-check the wallet balance and tier at bid submission and at availability reset. Bind location and availability updates to the authenticated driver and validate that any trip_id belongs to that driver and is in a state where the update makes sense. Reject requests that arrive out of the expected sequence, and log state transitions so anomalous chains can be detected. Where possible, model the workflow as a server-side state machine so the client cannot skip steps.

Hunting notes

This class hides in multi-step workflows with several small endpoints: driver and courier apps, ride-hailing, delivery, marketplaces with seller eligibility, and fintech onboarding. Recon signals include mobile API traffic with many granular state endpoints, identifiers passed as path or body parameters, and features gated by account status such as tier, balance or verification. Look for endpoints the UI calls automatically, since these are the ones most likely to lack checks.

To get a report accepted, show the baseline refusal and the bypass side by side, keep the chain minimal, and demonstrate a concrete business consequence rather than only a changed flag. State clearly which precondition was meant to hold and how the chain defeated it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

Bykea is a ride-hailing and delivery platform. Its drivers, called partners, use a mobile app to see trips that are available nearby, to say whether they are available to work, and to offer a price for a trip (a bid). The platform also gives each partner a wallet, a running balance of money the partner owes or is owed. Partners are grouped into tiers, and the lowest is Bronze.

The rule the platform wanted to enforce is simple: a Bronze partner whose wallet balance is negative should not be able to take trips. The researcher, bugbountywithmarco, found that this rule could be sidestepped.

The trick was to call three of the app's backend endpoints in a particular combination. An endpoint is simply a specific address on the server that the app talks to, like a counter in a building where you can make one kind of request. The three were:

HTTP
GET /v2/:city_id/bookings
HTTP
PUT /api/v2/driver/update/location
HTTP
POST /api/v2/offer/bid

By chaining them, a driver with a negative balance could reset their availability and then successfully submit bids. In other words, the wallet restriction was checked somewhere in the normal flow but not across this combination of calls, so the driver got back access to trips despite the balance limit.

The report was rated medium severity with a CVSS score of 6.5, classified as a business logic error, and disclosed on 13 June 2025. No bounty amount is given, and the summary does not describe the fix.

The three requests, line by line

A request is a message the app sends to a server. The first word is the method, which says what kind of action is wanted: GET asks to read something, PUT asks to replace or update something, and POST asks to create or submit something. What follows is the path, the address of the endpoint on the server.

The first call reads the bookings available in a city:

HTTP
GET /v2/:city_id/bookings

GET means read. /v2/ is a version prefix, so the server can change its API over time without breaking older apps. :city_id is a placeholder for a city identifier, a number or code that says which city to list trips for. bookings is the collection being read. This step matters because it is how the driver sees what trips exist, and it is the starting point of the flow.

The second call updates the driver's location, and the report notes it was called with any trip_id:

HTTP
PUT /api/v2/driver/update/location

PUT means update. The path points at the driver's location. The report notes the request was called with any trip_id, an identifier for a specific trip. This step matters because it is how the driver's availability was reset in the chain.

The third call submits a bid on a trip:

HTTP
POST /api/v2/offer/bid

POST means submit. The path says this is an offer, a bid, on a trip. This is the final step of the chain. It matters because, once the earlier call had reset availability, this call successfully submitted a bid.

Why the chain worked

The report does not describe the underlying cause; the chain of three endpoints was enough to reset availability and submit bids. The location update endpoint was called with any trip_id, and the chain reset the driver's availability. Once availability was reset, the bid endpoint accepted the submission.

A useful comparison is a building where the front door has a guard who checks your badge, but a side door into the same corridor has no guard at all. The rule is real, but it only holds at one entrance.

Impact

A Bronze-tier partner whose wallet balance is negative is supposed to be blocked from taking trips. With this chain, such a partner can reset availability and submit bids, gaining access to trips the platform intended to deny. The report frames this as unauthorised access to trips despite wallet limitations. The report does not describe any further consequence, such as payouts or effects on other users.

In general, how this kind of bug works

This is a business logic flaw. Business logic is the set of rules a product enforces about what is allowed, as opposed to technical rules like whether a password is correct. A business logic flaw happens when a rule the product enforces in one place is not enforced consistently everywhere the rule matters.

Eligibility checks (wallet balance, account tier, identity verification status, suspension) are often implemented in the handler for the final action, such as accepting a trip. Helper endpoints that change state (availability, location, presence) are treated as harmless and left unchecked. An attacker who can call those helpers directly, out of order, or with identifiers that do not belong to them can put the account into a state the main flow would never allow. The final action then succeeds because its own preconditions now look satisfied.

The second ingredient is missing ownership and state validation. An endpoint that accepts an arbitrary trip_id and acts on it without confirming the caller's relationship to that trip lets the client drive server state in ways the user interface never would. The user interface is just what the app draws on screen; the server is what actually decides. Hiding a button in the app does not protect anything if the server still answers the request.

Defences are server-side re-validation of every precondition on every endpoint that can affect eligibility, binding actions to the authenticated driver and their own trips, and treating client-supplied identifiers as untrusted.

In general, how to test for it

  1. Map the workflow. Identify the rule being enforced (balance, tier, limits) and every endpoint involved in reaching the restricted action: listing, availability, location, bidding, acceptance.
  2. Establish a baseline. With an account in the restricted state, confirm the final action is refused and note the exact error.
  3. Probe the helper endpoints individually. Call the availability and location updates directly, outside the normal sequence, and observe whether they succeed while the account is restricted.
  4. Vary identifiers. Send a trip_id that belongs to another driver, a completed trip, or a random value, and see whether the server accepts it.
  5. Replay the chain. After the helper calls, retry the restricted action. A positive result is the final action succeeding when the baseline refused it, with the state change visible in the account.
  6. Check ordering and repetition. Try the calls in reverse order, repeated, and interleaved with reads, since some checks only run on the first request.

Common false positives: the client hiding a button while the server still correctly refuses the action; a stale cached response making it look as though a bid was accepted; and test accounts whose tier or balance was changed by support, so the restriction was never actually in force. Confirm the outcome on the server side, for example by re-reading the trip or bid state, before reporting.

In general, how it is fixed

Enforce eligibility server-side on every endpoint that can move an account towards the restricted action, not only on the final one. Re-check the wallet balance and tier at bid submission and at availability reset. Bind location and availability updates to the authenticated driver and validate that any trip_id belongs to that driver and is in a state where the update makes sense. Reject requests that arrive out of the expected sequence, and log state transitions so anomalous chains can be detected. Where possible, model the workflow as a server-side state machine so the client cannot skip steps.

In general, where to look

This class hides in multi-step workflows with several small endpoints: driver and courier apps, ride-hailing, delivery, marketplaces with seller eligibility, and fintech onboarding. Recon signals include mobile API traffic with many granular state endpoints, identifiers passed as path or body parameters, and features gated by account status such as tier, balance or verification. Look for endpoints the user interface calls automatically, since these are the ones most likely to lack checks.

To get a report accepted, show the baseline refusal and the bypass side by side, keep the chain minimal, and demonstrate a concrete business consequence rather than only a changed flag. State clearly which precondition was meant to hold and how the chain defeated it.

Glossary

  • API: the set of addresses and rules a server exposes so an app can ask it to do things.
  • Endpoint: one specific address on a server that handles one kind of request.
  • Request: a message an app sends to a server asking it to read, update or create something.
  • Method: the first word of a request (GET, PUT, POST) saying what kind of action is wanted.
  • Path: the part of a request that names the endpoint, such as /api/v2/offer/bid.
  • Parameter: a named value in a request, here a placeholder like :city_id or a field like trip_id.
  • Identifier: a value that names one specific thing, such as a city or a trip.
  • Business logic: the product rules about what is allowed, beyond technical checks like passwords.
  • Business logic flaw: a bug where a product rule is enforced in one place but not everywhere it matters.
  • Eligibility check: a rule deciding whether an account may do something, such as a balance or tier requirement.
  • Tier: a level assigned to an account, here Bronze being the lowest.
  • Wallet balance: a running total of money an account owes or is owed.
  • Availability: the state saying whether a driver is currently open to receiving trips.
  • Bid: an offer a driver submits to take a trip.
  • State: the current situation of an account or trip on the server, such as available or accepted.
  • State-changing call: a request that alters state on the server rather than only reading it.
  • Side channel: an indirect route that changes something the main flow controls.
  • Ownership validation: checking that the thing named in a request really belongs to the caller.
  • Server-side validation: checking a rule on the server, where the user cannot bypass it, rather than in the app.
  • Client: the app or browser on the user's device, as opposed to the server.
  • User interface: what the app draws on screen; hiding something there does not change what the server allows.
  • CVSS: a standard scoring system for how serious a vulnerability is.
  • Severity: the overall seriousness rating of a report, here medium.
  • False positive: a finding that looks like a bug but is not, because the server actually behaved correctly.
  • State machine: a model of a workflow as a fixed set of states and allowed transitions between them.

More by bugbountywithmarco

View all

2 more disclosed reports, best first.

More from Bykea

View all

The newest disclosed reports for this program.

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.