Skip to content
Mobile Disclosed report Intermediate

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

1st_DM_from_yokoacc_account.png
1st_DM_from_yokoacc_account.png From the original on HackerOne
2nd_DM_from_app.acct_file.png
2nd_DM_from_app.acct_file.png
3rd_DM_from_app.acct_file.png
3rd_DM_from_app.acct_file.png
4th_DM_from_app.acct_file.png
4th_DM_from_app.acct_file.png

The original report as published on HackerOne, by abcdefghijklmnopqrstuvwxyzabc. 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 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

  1. Log out of the Twitter app on the iOS device.
  2. Reboot the device.
  3. Locate the application-state file in the app's Documents directory.
  4. 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.

More by abcdefghijklmnopqrstuvwxyzabc

View all

1 more disclosed report, 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.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.