User's DM won't deleted after logout from Twitter for iOS (com.atebits.xxx.application-state)
After logging out of Twitter for iOS, the app still stored the user's direct messages, including usernames and chat partners, in an application-state file. An attacker with access to the device could read these messages.
abcdefghijklmnopqrstuvwxyzabc Follow
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 5 months
- Disclosed after 6 months
I would like to add an additional information regarding my previous report about "Unencrypted User's DM and Statuses on twitter.db at Twitter for iOS". I have already tried to logout from my Twitter apps (including from built-in twitter apps for iOS), and then, I already reboot the iDevice too. (tested on iPhone 5 with the same version of Twitter Apps).
In this situation, the twitter.db that located on Cache isn't appear anymore. But, Attacker could still access the User's DM including username and their chat partner from "app.acct.username-some.random.number.detail.10" that could be found on: "Applications > Documents > com.atebits.xxx.application-state".
For support my explanation, I attached the screenshot in this post too.
nb: I'm sorry for opening another ticket. Because, I see that the status is already closed on previous ticket.
Best Regard,
YoKo
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
Root cause
Likely the app failed to delete or encrypt the application-state file containing direct messages upon logout.
Impact
An attacker with access to the device could read the user's direct messages, including usernames and chat partners, even after logout.
What the attacker needed
Access to the device's filesystem; user has logged in and out of the app
How it was found
- Log out of the Twitter app on the iOS device.
- Reboot the device.
- Locate the application-state file in the app's Documents directory.
- Read the direct messages from that file.
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 out of an app, you expect it to forget your private messages. Here, the app kept a copy of your direct messages in a file on the phone. Anyone who can look at the phone's files could read those messages.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.