Skip to content
Business logic Disclosed report Beginner

Lack of payment type validation in dial.uber.com allows for free rides

The ride-request endpoint did not properly validate the payment method ID supplied by the client, so a rider with an outstanding balance could send a non-existent payment type and still complete a trip. This let an attacker take rides without paying.

anandpingsafe Follow

Originally disclosed on HackerOne

  • Paid in 18 days
  • Disclosed after 2.2 years

Summary by the program

When a rider account had an outstanding account balance, improper validation of the payment method ID provided in the request made it possible to use an invalid payment method. As a result, it was possible to provide a non-existent payment type ID such as xyz when requesting a ride and get the trip for free. In addition to this, the vulnerability was trivial to reproduce and could have been easily abused.

Thanks, @appsecure_in!

Summary by the researcher

Initially reported it as outstanding balance bypass but then turned out to be a free ride bug..

The original report as published on HackerOne, by anandpingsafe. 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. 5 min read.

What the report shows

The target was Uber's rider-facing payment flow, specifically the request used to start a ride. The feature involved is the payment method selection: when a rider requests a trip, the client supplies a payment method ID, and the backend is expected to check that this ID refers to a real, valid payment method belonging to that account.

The researcher, anandpingsafe, originally set out to test something narrower: whether an outstanding account balance could be bypassed. While working on that, the behaviour turned out to be a free ride bug. The program's own summary describes the mechanism plainly: when a rider account had an outstanding balance, the payment method ID in the request was not properly validated, so an invalid payment method could be used. Concretely, a non-existent payment type ID such as xyz could be supplied when requesting a ride, and the trip would be free.

The program notes two things about the finding: it was trivial to reproduce and could have been easily abused. It was rated high severity and classified as a business logic error. The report does not include the raw HTTP request, the exact endpoint path, the parameter names, or the response bodies, so those cannot be reconstructed here.

Root cause

The likely root cause is missing server-side validation of a client-supplied identifier. The payment method ID arrives in the ride request and is trusted as a reference to a stored payment instrument. The backend appears to use it without confirming that it refers to a real payment method. When the ID does not resolve to a real payment method, the trip was still provided and was free. The outstanding balance is relevant because it is the condition under which the missing check becomes visible: the account is already in a state where payment handling matters, and the invalid ID lets the rider sidestep it.

Impact

An attacker with a rider account could request rides using a payment type ID that does not exist and obtain those trips for free. Because the manipulation is a single value in an otherwise normal request, it is easy to repeat, which is what makes the business impact significant: each successful request is a direct loss to the platform. The researcher frames this as a free ride bug, and the program confirms it was trivial to reproduce and easily abusable. No further impact, such as access to other users' payment data, is claimed.

How this kind of bug works

This is a business logic flaw built on an insecure direct reference to an object the client controls. Payment flows typically have several layers: the client picks a payment instrument, the server looks it up, and a payment processor charges it. The security boundary is the lookup. If the server treats the identifier as authoritative without checking ownership, existence and state, the client can substitute values the server never intended to accept.

The failure mode here is a missing negative case. Developers test the happy path with a valid card and see a charge. They rarely test what happens when the identifier is nonsense, belongs to another account, or points to a method that has been removed. If the code path for an unresolvable ID falls through to "create the ride anyway" rather than rejecting the request, the result is a free trip. Related variants include swapping in another user's stored method, reusing a deleted method, or supplying a type value that maps to a zero-cost or internal settlement path.

Defences are straightforward in principle: validate every identifier server-side against the authenticated user's own records, reject unknown values with an error, and make the ride-creation step depend on a successful authorisation or charge rather than running before it.

How to test for it

  1. Map the payment surface. Identify every request that carries a payment method, payment type, card token or balance reference. These appear when starting a ride, adding a payment method, changing the default method, and completing checkout.
  2. Establish a baseline. With a valid payment method configured, capture a normal request and note the exact field carrying the identifier and its format.
  3. Mutate the identifier. Replace it with a syntactically plausible but non-existent value, a value belonging to a second test account you control, a deleted method, and a malformed string. Keep everything else in the request identical.
  4. Observe the outcome. A positive result is the server accepting the request and completing the action (ride created, order placed, balance unchanged) while no charge occurs. Error responses, silent fallbacks to a default method, or a charge against a real method are not the bug.
  5. Confirm the money side. Check the account balance and transaction history after the action to verify nothing was debited. A ride that is created but later cancelled by the platform is weaker evidence than one that completes.
  6. Test the balance condition. If the account has an outstanding balance, repeat the mutation to see whether the balance check can be bypassed the same way.

Common false positives: the client blocks the request before it is sent (test with an intercepting proxy), the server accepts the request but the ride fails later at the payment step, or the mutated value happens to resolve to a legitimate default. Always confirm with a completed transaction and an unchanged balance.

How it is fixed

Server-side validation is the core fix: reject any payment method ID that does not exist, does not belong to the authenticated rider, or is not in a chargeable state. The ride-creation flow should be ordered so that authorisation or charge succeeds before the ride is confirmed, and failures should fail closed. Logging and alerting on rejected payment identifiers helps catch probing. Where a balance is outstanding, the check should be enforced independently of the client-supplied payment field.

Hunting notes

Payment and billing logic is where this class concentrates: ride hailing, food delivery, e-commerce checkout, subscriptions and wallet top-ups. Recon signals include mobile APIs with client-supplied identifiers, endpoints that accept opaque tokens or numeric IDs for payment instruments, and flows where the client appears to decide which method is used. Mobile app traffic is often the easiest place to see these fields, since the client is less likely to sanitise them.

Reproduce it more than once and state the business impact in money terms where you can.

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

What happened, in plain words

Uber is a ride-hailing service: you open the app, say where you want to go, and a driver comes. Behind the app there is a server, a computer that the app talks to. The app sends the server small messages called requests, and the server sends back responses. One of the things the app tells the server when you order a ride is which payment method to use, for example a saved card. It does this by sending a short label called an ID (identifier), a name for the payment method rather than the card details themselves.

The researcher, anandpingsafe, originally reported it as an outstanding balance bypass. While testing, the behaviour turned out to be something bigger: a free ride bug.

The program's own summary explains the mechanism. When a rider account had an outstanding balance, the payment method ID in the request was not properly validated. Validation means checking that a value makes sense before acting on it, the way a bouncer checks a ticket is real before letting someone in. Because that check was missing, an invalid payment method could be used. In concrete terms, a non-existent payment type ID such as xyz could be supplied when requesting a ride, and the trip would be free.

The program adds that the finding was trivial to reproduce and could have been easily abused. It was rated high severity and classified as a business logic error. The disclosed text does not include the raw request, the exact endpoint path, the parameter names or the response bodies, so those cannot be shown here.

Why it worked

The likely root cause is a missing check on the server side for a value the client supplies. The payment method ID arrives in the ride request and is treated as a reference to a real, stored payment instrument. The backend appears to use it without confirming that it refers to a real payment method. When the ID does not point to a real payment method, the trip was still provided and was free. Failing closed means that when something goes wrong, the safe outcome happens: here, the ride should be refused. Instead the ride was still created and no money was collected.

The outstanding balance matters because it is the condition under which the missing check becomes visible. The account is already in a state where payment handling matters, and the invalid ID lets the rider sidestep it.

What the impact was

Someone with a rider account could request rides using a payment type ID that does not exist and get those trips for free. Because the manipulation is a single value in an otherwise normal request, it is easy to repeat, and each successful request is a direct loss to the platform. The report does not claim any further impact, such as access to other users' payment data.

In general, how this kind of bug works

This is a business logic flaw built on an insecure direct reference to an object the client controls. In plain terms: the app is allowed to name something (here, a payment method), and the server trusts that name without checking it. Payment flows usually have several layers. The client picks a payment instrument, the server looks it up, and a payment processor charges it. The security boundary is the lookup. If the server treats the identifier as authoritative without checking ownership, existence and state, the client can substitute values the server never intended to accept.

The failure here is a missing negative case. Developers test the happy path with a valid card and see a charge. They rarely test what happens when the identifier is nonsense, belongs to another account, or points to a method that has been removed. If the code path for an unresolvable ID falls through to "create the ride anyway" rather than rejecting the request, the result is a free trip. Related variants include swapping in another user's stored method, reusing a deleted method, or supplying a type value that maps to a zero-cost or internal settlement path.

Defences are straightforward in principle: validate every identifier on the server against the logged-in user's own records, reject unknown values with an error, and make the ride-creation step depend on a successful authorisation or charge rather than running before it.

In general, how to test for it

  1. Map the payment surface. Identify every request that carries a payment method, payment type, card token or balance reference. These appear when starting a ride, adding a payment method, changing the default method, and completing checkout.
  2. Establish a baseline. With a valid payment method configured, capture a normal request and note the exact field carrying the identifier and its format.
  3. Mutate the identifier. Replace it with a syntactically plausible but non-existent value, a value belonging to a second test account you control, a deleted method, and a malformed string. Keep everything else in the request identical.
  4. Observe the outcome. A positive result is the server accepting the request and completing the action (ride created, order placed, balance unchanged) while no charge occurs. Error responses, silent fallbacks to a default method, or a charge against a real method are not the bug.
  5. Confirm the money side. Check the account balance and transaction history after the action to verify nothing was debited. A ride that is created but later cancelled by the platform is weaker evidence than one that completes.
  6. Test the balance condition. If the account has an outstanding balance, repeat the mutation to see whether the balance check can be bypassed the same way.

Common false positives: the client blocks the request before it is sent (test with an intercepting proxy, a tool that sits between the app and the server and lets you read and edit traffic), the server accepts the request but the ride fails later at the payment step, or the mutated value happens to resolve to a legitimate default. Always confirm with a completed transaction and an unchanged balance.

In general, how it is fixed

Server-side validation is the core fix: reject any payment method ID that does not exist, does not belong to the logged-in rider, or is not in a chargeable state. The ride-creation flow should be ordered so that authorisation or charge succeeds before the ride is confirmed, and failures should fail closed. Logging and alerting on rejected payment identifiers helps catch probing. Where a balance is outstanding, the check should be enforced independently of the client-supplied payment field.

In general, where to look

Payment and billing logic is where this class concentrates: ride hailing, food delivery, e-commerce checkout, subscriptions and wallet top-ups. Recon signals include mobile APIs with client-supplied identifiers, endpoints that accept opaque tokens or numeric IDs for payment instruments, and flows where the client appears to decide which method is used. Mobile app traffic is often the easiest place to see these fields, since the client is less likely to sanitise them.

Reproduce it more than once and state the business impact in money terms where you can.

Glossary

  • Request: a message an app or browser sends to a server asking it to do something.
  • Response: the message the server sends back.
  • Server: the computer that runs the service and holds the data.
  • Client: the app or browser the user is running, which talks to the server.
  • Endpoint: the specific address on the server that a request is sent to.
  • Parameter: a named value inside a request, such as a payment method ID.
  • ID (identifier): a short label that names something, such as a saved payment method.
  • Validation: checking that a value is real and acceptable before acting on it.
  • Business logic error: a flaw in the rules of how a feature is supposed to work, rather than in low-level code.
  • Insecure direct object reference: when the client names an object and the server trusts that name without checking it.
  • Fail closed: when something goes wrong, the safe outcome happens (the action is refused) rather than the unsafe one.
  • Happy path: the normal, expected sequence of steps where everything works.
  • Negative case: a test of what happens with bad, missing or unexpected input.
  • Authorisation: the step where the system confirms a payment is allowed and approved.
  • Charge: the actual taking of money from a payment method.
  • Balance: money owed or held on an account.
  • Token: a short value that stands in for something else, such as a card, so the real details are not sent.
  • Intercepting proxy: a tool that sits between the app and the server so you can read and edit traffic.
  • False positive: something that looks like a bug but is not.
  • Recon: the early work of mapping out where the interesting parts of a system are.
  • Severity: how serious a finding is judged to be.

More by anandpingsafe

View all

19 more disclosed reports, best first.

More from Uber

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.