Verify any unused email address
The signup flow trusted a locally modified onboarding response, so an attacker could verify an email address they did not control. This let them create verified accounts and potentially impersonate users on third-party sites that log in with Twitter.
Originally disclosed on HackerOne
- Paid in 16 days
- Disclosed after 46 days
Summary by the researcher
https://www.youtube.com/watch?v=ia-dfcUgztA
The report
Summary: Verify any unused email address in twitter account
Description: After signing up on twitter it's recommended for a user to verify his/her email address to avoid spam and impersonation, I was able to verify the email without having access to the email itself.
Steps To Reproduce:
It's a bit complex I'll write and make a video Requirments: 1.Telerik Fiddler (setuped for using https) 2.A Twitter account that you have access to it's Email address
Steps:
- Open Fiddler then click
fileand enablecapture trafficthen go to https://twitter.com/signup - Stop capturing once this URL is captured https://api.twitter.com/1.1/onboarding/task.json?flow_name=signup
- In fiddler click on the url and in the response click raw and copy all the response then paste and save them in a new file make sure to save them in UTF-8 encoding (ansi won't work)
- In fiddler click on Autoresponder and click "Add rule" in "rule editor" first field enter
EXACT:https://api.twitter.com/1.1/onboarding/task.json?flow_name=signupin second field open dropdown menu and clickfind a fileand select the file that you saved and clicksaveand finally check 'Enable rules' then clickfile>Capture traffic - go to https://twitter.com/login then login with your twitter account
- then go to https://twitter.com/signup enter name and
Use email insteadthen enter any email address to verify then click next then clicksign up - login to your email address attached to your Twitter account that you logged in with you will find that the verification code is sent to you copy it and enter it to verify the other email that you signed up with then enter a password and continue and now you got an email verified twitter account
Supporting Material/References:
I uploaded a video
Impact
- Authenticating attackers to users accounts with Twitter oauth in third parties applications
suppose that a website (www.example.com) have 2 methods for login
- Login with email address
- Login with Twitter account (in case that the website requires user email to authenticate users)
If the user is using an email address that is not signed up on twitter, an attacker is able to signup and verify the email address then login with twitter and access all victim data in third parties applications 2) Impersonate a user by verifying his/her email address on a twitter account and making crimes using this account. 3) spam, creating a huge amount of verified twitter accounts and spam
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 signup flow trusted client-side onboarding data and did not bind the verification code to the specific email address being verified.
Impact
An attacker could create accounts with verified emails they do not own, which could enable impersonation and access to third-party apps that trust Twitter login, and could be used for spam.
What the attacker needed
A Twitter account with accessible email; a proxy tool such as Fiddler; ability to intercept HTTPS traffic
How it was found
- Capture the signup onboarding response with a proxy and save it to a file.
- Add an autoresponder rule that serves the saved file for the onboarding request.
- Log in with an account whose email is accessible.
- Start a new signup, choose email, and enter an email address that is not owned.
- Use the verification code sent to the logged-in account's own email to verify the other address.
- Set a password and finish, producing an account with a verified email.
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 sign up, the site asks for an email and sends a code to prove you own it. Here the attacker changed the data the site received during signup so it accepted a different email, then used a code sent to their own real inbox to finish verifying that other address. That means an account could show a verified email the attacker never actually owned.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.