Chain of IDORs Between U4B and Vouchers APIs Allows Attackers to View and Modify Program/Voucher Policies and to Obtain Organization Employees' PII
The report describes a chain of IDOR vulnerabilities in the Uber for Business and voucher APIs that allowed researchers to view and modify voucher policies, potentially for free rides or food, and to access employees' PII. Attackers could also distribute modified vouchers, causing financial damage to victim organisations.
Originally disclosed on HackerOne
- Disclosed after 12 months
Summary by the program
The security researchers discovered a number of connected IDORs in the Uber business and voucher applications. By chaining these vulnerabilities together, the researchers could retrieve information related to existing voucher policies and modify those policies for monetary gain, such as for free rides or free food. Malicious actors could also distribute modified vouchers, which potentially could cause financial damage if charged to a victim organization.
What the report shows
This is a HackerOne report against Uber, disclosed on 7 April 2022 and rated high severity with a CVSS score of 8.1. The weakness class is insecure direct object reference (IDOR). The researcher is credited as hunt4p1zza. The report itself is short: the platform's summary is the substantive text, and it describes a chain of connected IDORs rather than a single request and response.
The target is two Uber APIs: U4B and the vouchers API. The feature at issue is voucher policies.
The researcher found a number of connected IDORs across the two applications. Chaining them together let the researcher retrieve information about existing voucher policies and then modify those policies. The stated motive for an attacker is monetary: modified policies could be used for free rides or free food. The summary also notes a second harm: malicious actors could distribute the modified vouchers, and if those vouchers were charged to a victim organisation, that organisation could suffer financial damage.
The report does not include the individual requests, object identifiers, parameters or responses that made up the chain, so the exact sequence of steps cannot be reconstructed from it. It also does not state a bounty amount or describe the remediation that was applied.
Root cause
The report does not describe the root cause.
Impact
As described, an attacker who chains the flaws can read existing voucher policies and change them. The practical consequences given are free rides and free food obtained through modified policies, and distribution of altered vouchers whose cost could fall on a victim organisation. The summary describes free rides or free food and possible financial damage to a victim organisation.
How this kind of bug works
An IDOR appears when an application accepts a client-supplied identifier for an object and uses it to fetch or change that object without verifying that the caller is allowed to touch it. The identifier can be a numeric ID, a UUID, a slug, a policy or program code, or an opaque token. The bug is not that the identifier is guessable; it is that authorisation is missing or is checked against the wrong thing, for example checking that the user is logged in but not that the object belongs to them or their organisation.
Chains matter because access control is often enforced per service. One service may trust identifiers issued by another, or a business-facing API may accept an organisation identifier that a vouchers service then uses without re-checking membership. Each hop looks defensible in isolation, but the combination lets a user cross a boundary.
Defences are consistent: enforce object-level authorisation on the server for every read and write, derive the tenant or organisation from the authenticated session rather than from request input, use unguessable identifiers as defence in depth only, and apply the same checks in every service that touches the object.
How to test for it
- Map the objects. Identify every endpoint that takes an identifier for a policy, voucher, program, organisation or employee record, in both the business-facing and consumer-facing applications.
- Create two accounts in different organisations, or one privileged and one low-privileged account, and record the identifiers each can legitimately see.
- With account A's session, request objects belonging to account B by substituting B's identifiers into every parameter position: path segments, query strings, JSON bodies and headers.
- Repeat for write operations: update, duplicate, publish and delete calls, using A's session against B's objects. A successful write is stronger evidence than a read.
- Test cross-service trust: take an identifier obtained from one application and present it to the other, and vice versa.
- Compare responses carefully. A 200 with an empty body, a generic error, or a redirect to a login page is not proof; look for B's actual data or a confirmed state change.
Common false positives are objects that are genuinely public, identifiers that are scoped server-side to the session so substitution has no effect, and responses that echo your input rather than stored data. Confirm impact by showing the data or the changed state, not just a different status code.
How it is fixed
Apply object-level authorisation checks on every endpoint that accepts an identifier, for reads and writes alike. Resolve the caller's organisation and role from the session and compare them with the object's owner before acting. Do not accept tenant identifiers from the client as authoritative. Where multiple services are involved, re-check authorisation at each service rather than trusting an upstream caller. Add regression tests that attempt cross-tenant access, and log and alert on denied object access attempts.
Hunting notes
This class hides in features that span products: business dashboards that manage records consumed by a consumer app, admin tools, and anything with policy, program, voucher or coupon objects. Recon signals include separate hostnames for related products, identifiers that appear in one product and are accepted by another, and API documentation that lists object endpoints without describing scopes. To make a report accepted, demonstrate the full chain with the smallest number of steps, show the concrete data retrieved or the state change made, and explain the business consequence in the program's terms, such as cost borne by a customer organisation.
What happened, in plain words
This is a bug bounty report against Uber, published on HackerOne on 7 April 2022. It was rated high severity with a CVSS score of 8.1, and the researcher is credited as hunt4p1zza. The weakness class is insecure direct object reference, or IDOR.
The report is short. The substantive text is the platform's summary, and it describes a chain of connected IDORs rather than a single request and response. The individual requests, object identifiers, parameters and responses that made up the chain are not included, so the exact sequence of steps cannot be reconstructed from it. No bounty amount is stated, and the remediation that was applied is not described.
The product and the feature
The target is two Uber APIs: U4B and the vouchers API.
The feature at issue is voucher policies. If you can edit the rule sheet, you can change what the coupon gives you.
What the researcher found
The researcher found a number of connected IDORs across the two applications. Chaining them together let the researcher retrieve information about existing voucher policies and then modify those policies. The stated motive for an attacker is monetary: modified policies could be used for free rides or free food. The summary also notes a second harm: malicious actors could distribute the modified vouchers, and if those vouchers were charged to a victim organisation, that organisation could suffer financial damage.
Why the chain matters
An IDOR on its own is a single door left unlocked. A chain is several such doors in different buildings, where the key from one opens the next. Each hop looks defensible on its own, but the combination lets a user cross a boundary they should never cross. The report describes the finding as a chain of connected IDORs.
In general, how this kind of bug works
An IDOR appears when an application accepts an identifier for an object from the person using it, and then fetches or changes that object without checking that this person is allowed to touch it. The identifier can be a number, a long random string, a short name, a policy or program code, or an opaque token. A useful comparison is a cloakroom: you hand in a ticket and get your coat back. If the attendant hands over any coat whose number you name, without checking that the ticket is yours, the system is broken even though the tickets themselves are perfectly valid.
The bug is not that the identifier is guessable. It is that the authorisation check is missing or is checking the wrong thing, for example confirming that you are logged in but not that the object belongs to you or your organisation.
How to test for it
- Map the objects. Identify every endpoint that takes an identifier for a policy, voucher, program, organisation or employee record, in both the business-facing and consumer-facing applications. An endpoint is simply a URL the application responds to.
- Create two accounts in different organisations, or one privileged and one low-privileged account, and record the identifiers each can legitimately see.
- With account A's session, request objects belonging to account B by substituting B's identifiers into every parameter position: path segments, query strings, JSON bodies and headers. A session is the server's memory of who you are, usually carried by a cookie, which is a small piece of data your browser stores and sends back with each request.
- Repeat for write operations: update, duplicate, publish and delete calls, using A's session against B's objects.
- Test cross-service trust: take an identifier obtained from one application and present it to the other, and vice versa. This is the step that turns separate gaps into a chain.
- Compare responses carefully. A 200 with an empty body, a generic error, or a redirect to a login page is not proof; look for B's actual data or a confirmed state change.
Common false positives are objects that are genuinely public, identifiers that are scoped server-side to the session so substitution has no effect, and responses that echo your input rather than stored data. Confirm impact by showing the data or the changed state, not just a different status code.
How it is fixed
Apply object-level authorisation checks on every endpoint that accepts an identifier, for reads and writes alike. Resolve the caller's organisation and role from the session and compare them with the object's owner before acting. Do not accept tenant identifiers from the client as authoritative. Where multiple services are involved, re-check authorisation at each service rather than trusting an upstream caller. Add regression tests that attempt cross-tenant access, and log and alert on denied object access attempts.
Hunting notes
This class hides in features that span products: business dashboards that manage records consumed by a consumer app, admin tools, and anything with policy, program, voucher or coupon objects. Recon signals include separate hostnames for related products, identifiers that appear in one product and are accepted by another, and API documentation that lists object endpoints without describing scopes. To make a report accepted, demonstrate the full chain with the smallest number of steps, show the concrete data retrieved or the state change made, and explain the business consequence in the program's terms, such as cost borne by a customer organisation.
Glossary
- Bug bounty: a programme where an organisation pays researchers for reporting security flaws responsibly.
- HackerOne: the platform on which this report was published.
- CVSS: a standard scoring system for the severity of a vulnerability; 8.1 is in the high range.
- IDOR (insecure direct object reference): a flaw where an application lets you reach an object by naming its identifier without checking that you are allowed to.
- Chain: several separate flaws used together, where each step makes the next one possible.
- Endpoint: a URL that an application responds to and that performs some action.
- Request: the message your browser sends to a server asking for a page or an action.
- Response: the message the server sends back.
- Session: the server's record of who you are across multiple requests.
- Cookie: a small piece of data stored by your browser and sent with requests, often used to carry a session.
- Token: a value that stands in for something else, such as proof of identity or a reference to an object.
- Parameter: a named value sent with a request, in the URL, the body or a header.
- Header: extra information sent alongside a request or response.
- API: the interface one piece of software uses to talk to another.
- Object: a single record in an application, such as one voucher policy or one employee entry.
- Identifier: the value that names a particular object.
- Authorisation: the check that decides whether you are allowed to do something.
- Authentication: the check that establishes who you are.
- Tenant: one customer organisation whose data is kept separate from other organisations' data.
- PII: personally identifiable information, data that identifies a real person.
- Voucher policy: a record defining how a voucher behaves and what benefit it grants.
- U4B: the name used in the title for Uber's business application.
- False positive: a finding that looks like a vulnerability but is not, because the behaviour is intended or harmless.
- Regression test: an automated test that checks a fixed bug stays fixed.
- Recon: the information-gathering phase before testing, such as finding related hostnames and documentation.