Business Logic Flaw in Invitation Feature Allows Full Account Tak
The invitation feature trusted a client-supplied email address and overwrote the victim's account email with it. An attacker could then use the password reset flow on the new address to take over the victim's account without any action by the victim.
Published on medium.com
Tahun lalu, saya menemukan sebuah kerentanan kritis pada salah satu platform bisnis di Indonesia. Kerentanan ini memungkinkan pengambilalihan akun (Account Takeover) hanya dengan memodifikasi parameter email (recipientemail) pada fitur undangan.
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 updated the account email from the request body without checking that the email belonged to the user identified by the user ID, so the invitation flow acted as an unverified email change.
Impact
An attacker could take full control of the victim's account, including personal data and digital assets, without any interaction from the victim.
What the attacker needed
An account able to send invitations; knowledge of the victim's user ID; an email address the attacker controls
How it was found
- Send a normal invitation request containing the victim's user ID, email and name.
- Intercept the request and replace the recipient email with an address the attacker controls that is not registered on the platform.
- Send the modified request and observe that the victim's account email changes to the attacker's address.
- Use the forgot password page to request a reset for the attacker's address.
- Open the reset link and set a new password, gaining full access to the victim's account.
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.
A website let a business owner invite a manager by sending a request that included the invitee's email address. The server believed whatever email the request contained and saved it as the email of the account named in the request, even though the two did not match. Because the attacker could then receive password reset emails at that address, they could set a new password and control the victim's account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.