Flaw in login with twitter to steal Oauth tokens
The Twitter Kit login integration logged OAuth tokens to Android logcat, so any other app on the same phone with logcat access could read those tokens and steal the user's Twitter OAuth credentials.
Originally disclosed on HackerOne
- Triaged in 8 days
- Fixed in 22 days
- Paid in 17 days
- Disclosed after 29 days
Hey hi,
Steps to reproduce:
I have been testing the twitter kit in fabric. I added login with twitter integration to my application. I pushed the application to my android phone , clicked login with twitter. entered my username and password.
Searched my logcat for everything with the word "twitter" in it. I found the oauth token getting leaked via login with twitter integration on Fabric. So any app that is using fabric's twitter kit ( login with twitter) is vulnerable to it. Any other app installed on that particular phone hasaccess to logcat, and can read the logs. which results in oauth token stealing.
Regards, karthik Wesecureapp
Attachments

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
Impact
Any other app installed on the same phone with logcat access could read the leaked OAuth token and steal the user's Twitter session.
What the attacker needed
Android phone; App using Fabric Twitter Kit login; Another app with logcat access
How it was found
- Add Twitter login integration to an Android app using Fabric's Twitter Kit.
- Install the app on an Android phone and start the Twitter login.
- Enter a username and password to complete login.
- Search logcat for entries containing 'twitter'.
- Observe the OAuth token in the log output.
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 log in to an app using Twitter, the app receives a special secret token that proves who you are. This report says that secret was written into a system log on the phone, and other apps on the same phone can read that log. So another app could copy the secret and act as the user.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.