Skip to content
Business logic Disclosed report Intermediate

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.

Seif Elsallamy Follow

Originally disclosed on HackerOne

Bounty$560 View original
  • 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:

  1. Open Fiddler then click file and enable capture traffic then go to https://twitter.com/signup
  2. Stop capturing once this URL is captured https://api.twitter.com/1.1/onboarding/task.json?flow_name=signup
  3. 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)
  4. 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=signup in second field open dropdown menu and click find a file and select the file that you saved and click save and finally check 'Enable rules' then click file > Capture traffic
  5. go to https://twitter.com/login then login with your twitter account
  6. then go to https://twitter.com/signup enter name and Use email instead then enter any email address to verify then click next then click sign up
  7. 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

  1. 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

The original report as published on HackerOne, by seifelsallamy. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Capture the signup onboarding response with a proxy and save it to a file.
  2. Add an autoresponder rule that serves the saved file for the onboarding request.
  3. Log in with an account whose email is accessible.
  4. Start a new signup, choose email, and enter an email address that is not owned.
  5. Use the verification code sent to the logged-in account's own email to verify the other address.
  6. 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.

More by Seif Elsallamy

View all

7 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.