Skip to content
IDOR Disclosed report Beginner

Insecure Direct Object Reference allows Crew Invite deletion

An Insecure Direct Object Reference in a Crews management endpoint let unauthorised users delete outstanding Crew invitations belonging to arbitrary Crews and addressed to arbitrary Social Club users. The program fixed it by adding server-side checks so only the original sender or an authorised Crew member can delete an invite.

floorball Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 4 months
  • Paid in 6 days
  • Disclosed after 4 months

Summary by the program

In this report, the hacker discovered an Insecure Direct Object Reference vulnerability in a service endpoint relating to Crews management that allowed unauthorized users to delete outstanding Crew invitations from arbitrary Crews to arbitrary Social Club users.

To resolve this vulnerability, we implemented additional checks on the service-side to ensure that Crew Invites can only be deleted by either the user who initially sent the request, or an authorized member of the Crew in question.

The original report as published on HackerOne, by floorball. 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 the Rockstar Games Social Club service at prod.ros.rockstargames.com, and the feature in question was Crews management, specifically the handling of Crew invitations. The researcher, floorball, reported an Insecure Direct Object Reference (IDOR) in a service endpoint tied to that feature. The report was rated medium severity and disclosed on 17 August 2023.

The behaviour described is straightforward: a user could delete outstanding Crew invitations belonging to arbitrary Crews and addressed to arbitrary Social Club users. In other words, the endpoint that removes an invitation did not tie the action to the caller's own relationship with that invitation. The report does not include the raw request, the parameter names, the identifiers used, or the exact responses, so the mechanics below the level of "an endpoint that deletes Crew invites" are not documented here.

The program's summary confirms the finding and describes the fix: additional service-side checks were added so that a Crew invite can only be deleted by the user who originally sent the request, or by an authorised member of the Crew in question. No bounty amount is given.

Root cause

The report does not describe the underlying cause beyond the missing authorisation check. That is the classic IDOR shape: object-level access control missing or applied only at the collection level.

Impact

The report's own framing is the safest description of impact: unauthorised users could delete outstanding Crew invitations from arbitrary Crews to arbitrary Social Club users. That is an integrity and availability problem for the invitation workflow. An unauthorised user could delete outstanding invitations from arbitrary Crews to arbitrary Social Club users. The report does not claim data disclosure, account takeover, or access to Crew membership itself, and none of those should be assumed.

How this kind of bug works

An IDOR occurs when an application exposes a reference to an internal object (a numeric ID, a UUID, a composite key, a filename) and performs the requested action based on that reference without checking that the current principal is allowed to touch that particular object. Authentication answers "who are you"; object-level authorisation answers "may you act on this object". IDOR is the gap between the two.

It happens for predictable reasons. Frameworks make it trivial to load a record by primary key, and developers often assume that because the identifier is hard to guess, or because the UI only ever shows your own objects, the check is unnecessary. Composite or nested routes (/crews/{crew}/invites/{invite}) make it worse, because it is easy to validate one part of the path and forget the other. State-changing verbs (DELETE, PUT, PATCH) are especially attractive because the effect is immediate and visible.

Defences are all variants of the same idea: derive the object from the authenticated principal rather than from the request, or load the object and then explicitly compare its owner or tenant against the caller before acting. Centralising that check in a policy layer, rather than repeating it per handler, is what stops it from being forgotten on the one endpoint that matters.

How to test for it

  1. Map the object-bearing endpoints. Look for anything that takes an identifier in the path, query string, or body: invitations, memberships, files, messages, drafts, API keys, team resources.
  2. Create two accounts (A and B) and, where the feature allows, two containers (for example two teams or groups) so you can test both horizontal (same role, different owner) and cross-tenant cases.
  3. As A, perform the action and capture the request. Note every identifier it carries, including ones hidden in JSON bodies or custom headers.
  4. Replay the same request authenticated as B, keeping A's identifiers. Try the read variant first (GET), then the state-changing variant (DELETE, PUT, PATCH), because read and write handlers often have different checks.
  5. Swap identifiers one at a time to isolate which field is unvalidated. If the route is nested, change the parent ID and the child ID independently.
  6. A positive result is a response that succeeds (200/204, or a body reflecting the other object) and a verifiable side effect: the object is gone, changed, or visible when you check from A's session.

Common false positives: the endpoint returns 200 but does nothing (soft failure); the object is genuinely public or shared; the identifier is a signed or opaque token that is validated server-side; the action is idempotent and the second call is a no-op; or the response is a generic error page that happens to carry a 200 status. Always confirm the side effect out of band, from the owning account, before reporting.

How it is fixed

The standard fix is server-side object-level authorisation on every handler that accepts an object reference. Concretely: load the object, then check that the authenticated user is the owner, a member of the owning tenant, or holds a role that permits the action, and reject otherwise with 403 or 404. Where possible, scope the query itself to the caller (for example, filter by the caller's tenant in the database query) so an unauthorised object simply cannot be fetched. Use unguessable identifiers as defence in depth, never as the control. Add regression tests that exercise the endpoint as a second user, and log authorisation failures so abuse is visible.

Hunting notes

This class hides wherever an object has an owner and an action: invitation and membership flows, sharing and permissions screens, export and download endpoints, draft and template resources, notification and inbox items, and anything with a nested route where one segment is validated and another is not. Multi-tenant SaaS is the richest ground, because cross-tenant access is both easy to test and clearly impactful.

Recon signals worth following: numeric or sequential IDs in URLs and JSON bodies; identifiers that appear in one response and are accepted by a different endpoint; GraphQL mutations that take an ID argument; mobile or legacy API versions of a feature whose web version is properly scoped; and endpoints that return 403 for one identifier but 200 for another.

To get a report accepted, demonstrate the side effect rather than the status code. Show the request from the attacker account, the request or response from the victim account proving the change, and a short note on who should have been allowed to perform the action. Keep the proof minimal and reproducible, and avoid touching other users' data beyond what is needed to show the flaw.

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

Rockstar Games runs a website called Social Club, where players can form groups called Crews. A Crew is a bit like a club: someone sets it up, other players are invited to join, and each invitation sits waiting until the invited player accepts or ignores it. The feature involved here is Crews management, specifically the handling of those invitations, on the service at prod.ros.rockstargames.com.

The researcher, floorball, found that the part of the service that deletes an invitation did not check who was asking. Unauthorised users could delete a pending invitation belonging to any Crew and addressed to any Social Club user. The report was rated medium severity and disclosed on 17 August 2023.

To understand why that is a problem, think about a hotel reception desk. A guest can ask to cancel their own booking, and the receptionist checks the booking belongs to them before doing it. Here, the desk accepted any booking number from anyone and cancelled it without looking at whose name was on it. The invitation is the booking, and the delete request is the cancellation.

The report does not include the raw request, the parameter names, the identifiers used, or the exact responses, so the mechanics below the level of "an endpoint that deletes Crew invites" are not documented. No bounty amount is given.

Why it happened

The report does not describe the underlying cause beyond the missing authorisation check.

This is the classic shape of an Insecure Direct Object Reference, or IDOR. The application hands out a reference to an internal object, such as a number or a code, and then acts on whatever object that reference points to, without asking whether the current user is entitled to touch that particular one. Authentication answers "who are you"; object-level authorisation answers "may you act on this object". IDOR is the gap between the two.

What the impact was

The safest description is the one the report itself uses: unauthorised users could delete outstanding Crew invitations from arbitrary Crews to arbitrary Social Club users. That is an integrity and availability problem for the invitation workflow. An unauthorised user could delete outstanding invitations from arbitrary Crews to arbitrary Social Club users. The report does not claim data disclosure, account takeover, or access to Crew membership itself, and none of those should be assumed.

How it was fixed

The program added extra checks on the service side, so that a Crew invite can only be deleted by the user who originally sent the request, or by an authorised member of the Crew in question. In the hotel comparison, the receptionist now looks up the booking and confirms it is yours before cancelling it.

In general, how this kind of bug works

An IDOR occurs when an application exposes a reference to an internal object (a numeric ID, a UUID, a composite key, a filename) and performs the requested action based on that reference without checking that the current principal is allowed to touch that particular object. It happens for predictable reasons. Frameworks make it trivial to load a record by primary key, and developers often assume that because the identifier is hard to guess, or because the interface only ever shows your own objects, the check is unnecessary. Nested routes such as /crews/{crew}/invites/{invite} make it worse, because it is easy to validate one part of the path and forget the other. State-changing verbs such as DELETE, PUT and PATCH are especially attractive to attackers because the effect is immediate and visible.

Defences are all variants of the same idea: derive the object from the authenticated user rather than from the request, or load the object and then explicitly compare its owner or tenant against the caller before acting. Centralising that check in a policy layer, rather than repeating it in every handler, is what stops it from being forgotten on the one endpoint that matters.

In general, how to test for it

  1. Map the endpoints that carry an object reference. Look for anything that takes an identifier in the path, query string or body: invitations, memberships, files, messages, drafts, API keys, team resources.
  2. Create two accounts (A and B) and, where the feature allows, two containers (for example two teams or groups) so you can test both horizontal (same role, different owner) and cross-tenant cases.
  3. As A, perform the action and capture the request. Note every identifier it carries, including ones hidden in JSON bodies or custom headers.
  4. Replay the same request authenticated as B, keeping A's identifiers. Try the read variant first (GET), then the state-changing variant (DELETE, PUT, PATCH), because read and write handlers often have different checks.
  5. Swap identifiers one at a time to isolate which field is unvalidated. If the route is nested, change the parent ID and the child ID independently.
  6. A positive result is a response that succeeds (200 or 204, or a body reflecting the other object) and a verifiable side effect: the object is gone, changed, or visible when you check from A's session.

Common false positives: the endpoint returns 200 but does nothing (soft failure); the object is genuinely public or shared; the identifier is a signed or opaque token that is validated server-side; the action is idempotent and the second call is a no-op; or the response is a generic error page that happens to carry a 200 status. Always confirm the side effect out of band, from the owning account, before reporting.

In general, how it is fixed

The standard fix is server-side object-level authorisation on every handler that accepts an object reference. Concretely: load the object, then check that the authenticated user is the owner, a member of the owning tenant, or holds a role that permits the action, and reject otherwise with 403 or 404. Where possible, scope the query itself to the caller (for example, filter by the caller's tenant in the database query) so an unauthorised object simply cannot be fetched. Use unguessable identifiers as defence in depth, never as the control. Add regression tests that exercise the endpoint as a second user, and log authorisation failures so abuse is visible.

In general, where to look

This class hides wherever an object has an owner and an action: invitation and membership flows, sharing and permissions screens, export and download endpoints, draft and template resources, notification and inbox items, and anything with a nested route where one segment is validated and another is not. Multi-tenant SaaS is the richest ground, because cross-tenant access is both easy to test and clearly impactful.

Recon signals worth following: numeric or sequential IDs in URLs and JSON bodies; identifiers that appear in one response and are accepted by a different endpoint; GraphQL mutations that take an ID argument; mobile or legacy API versions of a feature whose web version is properly scoped; and endpoints that return 403 for one identifier but 200 for another.

To get a report accepted, demonstrate the side effect rather than the status code. Show the request from the attacker account, the request or response from the victim account proving the change, and a short note on who should have been allowed to perform the action. Keep the proof minimal and reproducible, and avoid touching other users' data beyond what is needed to show the flaw.

Glossary

  • Endpoint: a specific address on a server that performs one action, such as deleting an invitation.
  • Request: the message a browser or app sends to a server asking it to do something.
  • Response: the message the server sends back, including a status code such as 200 (success) or 403 (forbidden).
  • Cookie: a small piece of data a site stores in your browser so it can recognise you on later requests.
  • Token: a value used to prove who you are or to reference something, often a long random string.
  • Authentication: proving who you are, usually by logging in.
  • Authorisation: deciding what a known user is allowed to do.
  • Object: a single stored item in an application, such as one invitation, one user or one Crew.
  • Identifier (ID): the value that names a particular object, such as a number or a code.
  • IDOR (Insecure Direct Object Reference): a bug where an application acts on an object named in the request without checking the caller is allowed to touch it.
  • Principal: the identity the server is acting for on a given request, normally the logged-in user.
  • Tenant: a separate customer or group whose data is kept apart from others in the same system.
  • Horizontal access: reaching another user's objects at the same privilege level as your own.
  • Cross-tenant access: reaching data belonging to a different tenant.
  • State-changing verb: an HTTP method such as DELETE, PUT or PATCH that changes data rather than just reading it.
  • GET: the HTTP method used to read something.
  • DELETE: the HTTP method used to remove something.
  • PUT / PATCH: HTTP methods used to replace or partly update something.
  • UUID: a long, hard-to-guess identifier.
  • GraphQL mutation: a GraphQL operation that changes data on the server.
  • Idempotent: an action that has the same effect whether you do it once or many times.
  • Soft failure: a response that looks successful but did not actually change anything.
  • False positive: a finding that looks like a bug but is not.
  • Out of band: checking the result through a different route, such as logging in as the owner, rather than trusting the first response.
  • 403 / 404: HTTP status codes meaning "forbidden" and "not found".
  • Defence in depth: adding more than one layer of protection so one mistake does not open everything.
  • Regression test: an automated test that checks a fixed bug stays fixed.
  • Recon: the early stage of looking around a target to find where to test.

More from Rockstar Games

View all

The newest disclosed reports for this program.

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.