Open Redirect leak of authenticity_token lead to full account take over.
A follow action on the mobile Twitter site accepted a recipient parameter that was an external URL, so the POST request carrying the user's authenticity token was sent to that external site. An attacker could capture the token and use it to perform actions as the victim, including adding a mobile number and then recovering the account.
Originally disclosed on HackerOne
- Triaged in 38 hours
- Fixed in 3 days
- Paid in 8 days
- Disclosed after 33 days
Hey guys URL: https://mobile.twitter.com/messages/follow?recipient=/example.com when I click 'Follow' I will send my POST request to https://example.com witch contains my authenticity_token that can be used for anything like tweeting, following, sending messages, changing username.,.,.etc it can be used too to Add a mobile number, and then steal the account by recovering it by the mobile number. Thank You.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the recipient parameter was used to build the form's submission target without validating that it stayed on the trusted domain, so the POST and its token were sent cross-origin.
Impact
An attacker who receives the token could act as the victim, including adding a mobile number and then taking over the account through recovery.
What the attacker needed
Victim clicks a crafted link; victim clicks Follow on the page
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 report has not been written yet. The Original tab links to the source.
When you click a button on a website, your browser sometimes sends a hidden security code along with your action. This report shows that a link could make that action go to a different website, taking the secret code with it. Anyone who receives that code can pretend to be you on the real site.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.