Skip to content
IDOR Disclosed report Intermediate

IDOR Vulnerability at AddTagToAssets operation name

The AddTagToAssets GraphQL operation accepted a base64-encoded tag identifier that could be brute-forced to reference another user's custom tag. An attacker could disclose a victim's custom tag names without any interaction from the victim.

root_geek280 Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Fixed in 5 months
  • Paid in 4 months
  • Disclosed after 10 months

Insecure Direct Object Reference (called IDOR from here) occurs when a application exposes a reference to an internal implementation object. Using this way, it reveals the real identifier and format/pattern used of the element in the storage backend side. The most common example of it (altrough is not limited to this one) is a record identifier in a storage system (database, filesystem and so on). IDOR do not bring a direct security issue because, by itself, it reveals only the format/pattern used for the object identifier. IDOR bring, depending on the format/pattern in place, a capacity for the attacker to mount a enumeration attack in order to try to probe access to the associated objects.

##Vulnerable Endpoint: https://hackerone.com/graphql

##Steps to reproduce:

  1. Create two h1 accounts as attacker and victim and then create a scope asset respectively
  2. Victim create a new custom tag
  3. Assign tag to attacker's scope then capture the request
  4. You will obtain a request whose the operationName: AddTagToAssets and contains tagId parameter which has a base64 cipher text within
  5. If you decode it, the result's format is gid://hackerone/AsmTag/4979xxxx
  6. Bruteforce the AsmTagId then replace to your tagId parameter
  7. You will obtain 200 OK response status contains the error messages:
{"data":null,"errors":[{"message":"AsmTag does not exist","locations":[{"line":2,"column":3}],"path":["addTagToAssets"],"type":"NOT_FOUND"}]}
  1. But no worries, this issue can still be produced if you look at your assets page
  2. Successfully to disclose victim's custom tag without any interaction with victim

████████████

Detail about vulnerability and PoC on the attachment video file below.

███

##Remediation: IDOR means that you directly alter a database object by using user submitted data in the query before checking or validating that data. You should first check if the user that submits the request isn't tampering and isn't submitting any ID's that do not belong to his account.

Impact

Lead to disclose all of victim's new custom tags without any interaction with victim.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not verify that the tag ID submitted in the AddTagToAssets GraphQL mutation belonged to the authenticated user before processing it.

Impact

An attacker could disclose all of a victim's new custom tags without any interaction from the victim.

What the attacker needed

Two accounts (attacker and victim); each account has a scope asset; victim creates a custom tag; attacker can capture and modify requests

The fix

The server should validate that the tag ID belongs to the authenticated user before processing the request.

How it was found

  1. Create two accounts (attacker and victim) and each creates a scope asset.
  2. The victim creates a new custom tag.
  3. Assign the tag to the attacker's scope and capture the request.
  4. The request uses operationName AddTagToAssets and contains a base64-encoded tagId parameter.
  5. Decode the tagId to see the format gid://hackerone/AsmTag/4979xxxx.
  6. Brute-force the AsmTagId and replace the tagId parameter; the victim's tag is then disclosed via the assets page.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An IDOR (Insecure Direct Object Reference) happens when a website lets you change an identifier in a request to access something that belongs to someone else. Here, the tag ID was sent as a base64-encoded string, and by guessing different numbers an attacker could see other users' tag names. The fix is to check that the tag belongs to the requesting user before returning or modifying it.

What is IDOR?

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.

More by root_geek280

View all

3 more disclosed reports, best first.

More from HackerOne

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.