1120 Ato Bug In Twitters
A session hijacker could delete the victim's phone number and disable two-factor authentication without knowing the password, then add a new phone number via a URL that skipped the password prompt. This allowed the attacker to reset the password using the new number and take full control of the account.
Published on infosecwriteups.com
Explore the story of a $1120 Twitter bug, I found — a security flaw that allowed attackers to seize full control of accounts without knowing the password.
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 application failed to enforce password confirmation on certain account-change endpoints, and a specific URL parameter allowed bypassing the password step during two-factor authentication setup.
Impact
An attacker with a hijacked session could take full control of the victim's Twitter account without knowing the password.
What the attacker needed
Hijacked session (cookie or session token); victim has a phone number linked
How it was found
- With a hijacked session, go to Security and Privacy settings, then Notification Preferences, then SMS Notification, and delete the top phone number (no password required).
- Go to Security and Account Access, then Two-Factor Authentication, and choose Text Message; a password screen appears.
- Use a specific URL with parameters to bypass the password screen and reach the phone number addition step.
- Add a new phone number, verify the OTP, and enable 2FA.
- Log out and go to the forgot password page, enter the newly added phone number, receive the OTP, and change the password.
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 log in to a website, it often gives you a session cookie so you don't have to type your password every time. If an attacker steals that cookie, they can act as you, but normally they still need your password for sensitive changes like changing your phone number. Here, the attacker found a way to make those changes without the password, then used the new phone number to reset the password and take over the 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.