IDOR - Delete all Licenses and certifications from users account using CreateOrUpdateHackerCertification GraphQL query
The GraphQL mutation used to create or update a user's licences and certifications did not check that the supplied identifier belonged to the caller. By changing the ID in the request, an attacker could delete other users' licences and certifications.
Originally disclosed on HackerOne
- Triaged in 24 hours
- Fixed in 4 days
- Paid in 24 hours
- Disclosed after 5 days
Summary: Hey team,
While editing our Licenses and certifications if we change the ID number we can delete other users Licenses and certifications. it simply can be done by editing the ID number in our graphql query. If change the ID from 1 to X possible range then we can delete all the Licenses and certifications present between these.
Steps To Reproduce
- Log in to your own account in two browsers A and B with User A and User B
- Create your own *Licenses and certifications in both the account
- Now edit your own *Licenses and certifications and Intercept this using a Burp Proxy
- Now In the body change the ID number and you will be able to delete all the Licenses and certifications present in HackerOne
- For now change the ID to the Licenses and certifications ID of the Other account and it will be deleted.
PoC Video: ████
Impact
Able to delete all the Licenses and certifications present in 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 CreateOrUpdateHackerCertification mutation looked up and modified the record by the client-supplied ID without verifying that the record belonged to the authenticated user.
Impact
An attacker could delete the licences and certifications of any user, and by iterating over IDs could remove all such entries on the platform.
What the attacker needed
Two accounts; a proxy to intercept requests
How it was found
- Log in to two accounts, one in each of two browsers.
- Create a licence or certification entry in both accounts.
- Edit your own entry and intercept the request with a proxy.
- Change the ID in the request body to another user's entry ID.
- The other user's entry is deleted.
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.
A licence or certification entry has a number (an ID) that tells the site which entry it is. The site trusted whatever number the user sent and acted on it without checking who owned that entry. This is called an IDOR: changing an identifier to reach someone else's data.
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.