Critical Unauthorized Data Disclosure via HTTP Method Manipulatio
An invitation-deletion API endpoint accepted GET requests and returned the invited user's personal data without checking whether the requester was authorised to see it. Any authenticated user could therefore harvest sensitive information such as phone numbers and profile pictures of other users.
Published on medium.com
Assalam o alaikum for muslim brothers, sisters and hello for non muslims. i hope all of you are doing well and learning new things day by day.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The endpoint accepted a GET request for a delete-only action and returned the invited user's data without verifying the requester's authorisation.
Impact
Any authenticated user could harvest other users' personal data, which could enable phishing and may breach data protection rules.
What the attacker needed
A valid authenticated account; ability to invite a user
The fix
The endpoint should reject unsupported HTTP methods, enforce authorisation checks on the invited user's data, and return only the fields the operation needs.
How it was found
- Log in to the platform with a valid account.
- Invite a target user to your organisation.
- Intercept the request sent by the Delete Invitation action.
- Change the method from DELETE to GET and resend it.
- Observe sensitive data such as phone number, profile picture and user ID in the response.
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 write-up has not been written yet. The Original tab links to the source.
Web APIs use different HTTP methods for different actions: DELETE removes something, GET reads something. Here the server treated a GET request to the delete address as a read request and handed back the invited person's private details. Because no check confirmed the requester was allowed to see that data, any logged-in user could pull it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.