Full Account Takeover di redacted.com: Ganti Password Tanpa Tahu
A GraphQL mutation that updates a consumer profile also accepts a new password without asking for the old one, and it still works with a session cookie that the dashboard treats as logged out. An attacker holding a valid session cookie could therefore change the victim's password and take over the account.
Beberapa waktu lalu, saat lagi ngulik fitur-fitur di redacted.com, saya nemu satu celah keamanan yang cukup serius: akun pengguna bisa diambil alih sepenuhnya hanya dengan reuse cookie sesi yang valid, tanpa perlu tahu password lama. 😬
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 GraphQL profile-update mutation allowed a password change without re-authenticating the user or checking the old password, and the server did not properly invalidate the session on logout.
Impact
An attacker with a valid session cookie could take over the account, keep persistent access and view or change sensitive profile data, without victim interaction.
What the attacker needed
A valid session cookie for the victim; ability to send a GraphQL request
The fix
The password change should require the old password, sessions should be invalidated or rotated on login and logout, and sensitive changes should need extra verification such as MFA or email confirmation.
How it was found
- Obtain the victim's session cookie (the author assumes via XSS or another method).
- Try to use the cookie on the dashboard; the session is treated as logged out and rejected.
- Send a GraphQL consumer update request to the profile endpoint with the cookie and a new password.
- The request succeeds and the password is changed.
- Log in with the new password to access 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 session cookie is a small piece of data a website gives your browser after you log in, so the site can recognise you on later requests. Here the site kept accepting that cookie for a password-change request even after it had marked the session as logged out, and it never asked for the current password. Anyone who got hold of the cookie could set a new password and lock the real owner out.
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.