Skip to content
Business logic Disclosed report Beginner

Twitter Source Label allow 'mongolian vowel separator' U+180E (app name)

Twitter's app-name validation blocked some invisible Unicode characters but allowed the Mongolian vowel separator (U+180E), so an attacker could register an app whose name looked identical to an existing one. This could be used to spoof a trusted app name in the OAuth authorisation screen, making a phishing attempt harder to detect.

lorenznickel Follow

Originally disclosed on HackerOne

  • Triaged in 37 hours
  • Fixed in 17 days
  • Paid in 14 days
  • Disclosed after 24 days

Summary: Twitter app-names (which are shown in the Tweet source label) are supposed to be unique and because of that they must not include invisible unicode characters. However, you can use the mongolian vowel separator in these app-name, which allows to fake a app-name.

Description: Every tweet has a ['Tweet source label'] (https://help.twitter.com/en/using-twitter/how-to-tweet#source-labels) which in my understanding is determined by the credentials provided when the POST statuses/update request is made to the twitter-api. This name/source is for example shown below a tweet in the Twitter-Web-App or the Android App or in the twitter-app authorization screen. Every source is registered by one specific twitter-developer-account. Therefore it should not be possible to use invisible characters in an app-name, because names would stop 'looking' unique. If you try for example to register a app with a name which includes a 'zero width space' (U+200B) you get the following error: "appName: The application name can't include invisible unicode characters".

Despite this warning it's possible to use the 'mongolian vowel separator' U+180E within a app-name. The name is rendered like the name without this symbol (I tested this at least with the twitter-web app in Chrome on Windows and in Twitter for Android), but it's registered as a completely different application.

Notice that a possible attack scenario, which is a bit more detactable, is using other unicode spaces for example from this list http://jkorpela.fi/chars/spaces.html to replace a regular space. This can the app name look really similar, but it would still be possible to detect, if you would start to mark the app name symbol by symbol with your mouse on the computer, but I think this shouldn't be allowed as well, you should only be allowed to use regular white-spaces in my opinion).

By exploiting this flaw I was also able to create a twitter-application without any (shown) name at all.

empty_name.png
empty_name.png From the original on HackerOne

Steps To Reproduce:

  1. Go to https://developer.twitter.com/en/apps (you will need a twitter developer account for that)
  2. Click 'Create an app'
  3. Select an App name which is already used (for example Twitter Web App) and you will get an error, because the name is already taken
  4. Add a mongolian vowel separator somewhere to the name (hopefully nobody else will have used this char in exactly the same place, but I never had a collision here. If you have a problem with that I can assist you furthermore in finding a free name, but that really shouldn't be a problem.)
  5. Create the app, authenticate an account with it and send a tweet from this app (If you have problems with this, there are plenty of resources about how to this, but for example this should work, also I didn't use it: https://gist.github.com/KonradIT/0bd7243ebe8d7b3e231603880acab7cf If you need assistance with this, let me know)
  6. Go to the twitter-account you made the tweet with and see that the source of the tweet looks exactly like it was made from the original app without the special character

Impact:

As twitter considers app-names unique and prints an error if you use certain invisible characters, I think this is not intended behavior at all. You can use this to "spoof" an app-name, which might be not a problem if shown in the context of a tweet, but way more important in the oAuth context when you authorize a twitter-app to tweet (or do other stuff with your account) in your name.

tweet-from-app.png
tweet-from-app.png From the original on HackerOne

This auth-screen shows 4 app-controlled pieces of information, which are the only way for a user to make sure this is the correct app he really wants to authorize, which are the app icon, the app name, the website url and the description. 3 of these 4 are easily controlled by the attacker, you can even set "twitter.com" as the website url. The only real possibility to detect a phishing attempt here is the app name. As this attack scenario allows you to use every prominent app name (like Twitter Web App) as the app name, the fake auth-screen can't really be distinguished from the real one.

auth-screen.png
auth-screen.png From the original on HackerOne

Supporting Material/References:

F699263 F699264 F699265

Impact

As twitter considers app-names unique and prints an error if you use certain invisible characters, I think this is not intended behavior at all. You can use this to "spoof" an app-name, which might be not a problem if shown in the context of a tweet, but way more important in the oAuth context when you authorize a twitter-app to tweet (or do other stuff with your account) in your name. This auth-screen shows 4 app-controlled pieces of information, which are the only way for a user to make sure this is the correct app he really wants to authorize, which are the app icon, the app name, the website url and the description. 3 of these 4 are easily controlled by the attacker, you can even set "twitter.com" as the website url. The only real possibility to detect a phishing attempt here is the app name. As this attack scenario allows you to use every prominent app name (like Twitter Web App) as the app name, the fake auth-screen can't really be distinguished from the real one.

Attachments

app-names.png
app-names.png From the original on HackerOne
name-taken.png
name-taken.png
name-invis.png
name-invis.png

The original report as published on HackerOne, by lorenznickel. 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 app-name validation used a blocklist of invisible Unicode characters that did not include U+180E, so names differing only by that character were treated as unique.

Impact

An attacker could spoof a trusted app name in the OAuth authorisation screen, making a phishing attempt hard to distinguish from the real app; the report notes the spoofed name is also visible in tweet source labels.

What the attacker needed

A Twitter developer account; ability to create an app and authenticate an account

The fix

The author suggests validation should reject invisible characters and allow only regular whitespace.

How it was found

  1. Go to the Twitter developer apps page and sign in with a developer account.
  2. Click 'Create an app'.
  3. Try an existing app name such as 'Twitter Web App' and see the name-taken error.
  4. Insert a Mongolian vowel separator somewhere in the name.
  5. Create the app, authenticate an account, and send a tweet.
  6. View the tweet's source label and see it looks like the original app.

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 authorise an app to access your Twitter account, you see its name and icon. The site tries to stop people from creating apps with names that look the same by blocking invisible characters. But one invisible character slipped through, so someone could make an app that looks exactly like a trusted one and trick you into giving it access.

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