Skip to content
Account takeover Disclosed report Intermediate

Ability to perform actions (Tweet, Retweet, DM) and other actions, unauthenticated, on any account with SMS enabled.

Twitter's SMS command feature allowed anyone who knew a target's phone number to perform account actions like tweeting, retweeting, and sending DMs without authentication. An attacker could also disable SMS two-factor authentication and delete tweets.

antisocial_eng Follow

Originally disclosed on HackerOne

Critical 9.4 View original
  • Triaged in 5 days
  • Fixed in 13 days
  • Disclosed after 9 months

Summary: By knowing the mobile phone number associated with a Twitter account, or by using random mobile phone numbers! It is possible to perform the following actions against a target without their knowledge or interaction. With no account takeover scenario.

It's a case of, if I know the mobile number... I can control basic functions of the account.

I can do everything that is listed here: https://help.twitter.com/en/using-twitter/sms-commands on an account, completely unauthenticated.

Steps To Reproduce:

(Add details for how we can reproduce the issue)

  1. Spoof target number, send an SMS to a special short code for the geographical location, as seen here: https://help.twitter.com/en/using-twitter/supported-mobile-carriers

Impact: Massive. I can remove the SMS two factor of the account. I can DM people without them knowing. If I had the mobile number of Donald Trump, I could send Tweets as him... There is so much wrong here.

Supporting Material/References:

  • List any additional material (e.g. screenshots, logs, etc.)

https://twitter.com/___Sh4rk___/status/1076204152546619392 this is a tweet I sent from my close friends account. She did not reveal her password or authenticate it at all.

Impact

Remove 2FA

Tweet on someones behalf.

DM Someone.

Delete someones tweets

Turn off all phone SMS notifications

Follow people

Unfollow people.

Block/Report people - with a little script I could get 10000 phone numbers all reporting innocent tweets. Controlling media etc

More stuff really.

Attachments

Screenshot_2018-12-21_20.08.40.png
Screenshot_2018-12-21_20.08.40.png From the original on HackerOne
Screenshot_2018-12-21_20.46.34.png
Screenshot_2018-12-21_20.46.34.png
Screenshot_2018-12-21_20.47.08.png
Screenshot_2018-12-21_20.47.08.png

The original report as published on HackerOne, by antisocial_eng. 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 SMS command system authenticated users solely by the sender's phone number, without any additional verification or confirmation.

Impact

An attacker could perform many account actions unauthenticated, including removing SMS two-factor authentication, tweeting, sending DMs, deleting tweets, and following or blocking users.

What the attacker needed

Target has SMS enabled; attacker knows or guesses target's phone number; attacker can spoof SMS sender

How it was found

  1. Spoof the target's mobile number.
  2. Send an SMS to the special short code for the geographical location.

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.

Twitter let people control their accounts by sending text messages from their phone. The problem was that Twitter trusted the phone number alone, so anyone who knew or guessed a victim's number could send those same texts and act as them. This meant they could post, message, or even turn off security settings without ever logging in.

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.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.