How i was abble to delete ORG with leaked token
The organisation deletion endpoint sent a verification email, but changing the request method from POST to GET caused the response to leak the verification token. An attacker with the leaked token could delete the organisation without email verification.
medium.com
Published on medium.com
Assalam o alaikum for muslim brothers 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
Likely the server returned the verification token in the response body when the request method was changed from POST to GET, instead of keeping it secret and only sending it by email.
Impact
An attacker who can trigger the deletion request and read the response could delete an organisation without access to the verification email.
What the attacker needed
Ability to send requests to the deletion endpoint; ability to read the server response
The fix
The server should not include the verification token in any response; it should only be sent to the organisation owner's email.
How it was found
- Click the delete organisation button and observe that a verification email is sent.
- Intercept the deletion request in Burp Suite and note it is a POST request.
- Send the request to Repeater and observe the response.
- Change the request method from POST to GET and send it again.
- Observe that the verification email token is leaked in the response.
- Use the leaked token to delete the organisation without email verification.
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.
When you delete an organisation, the app usually emails you a secret code to confirm. Here, the server accidentally included that secret code in its reply when the request was made a different way. Anyone who could see that reply could use the code to delete the organisation without needing access to the email.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.