Skip to content
Info disclosure Advisory Intermediate CVE-2018-3986

Telegram Android Secret Chats Information Disclosure Vulnerability

Photos taken inside Telegram's Secret Chats were also saved by the external camera app to a separate location on the device. After a secret chat was deleted or self-destructed, that extra copy remained on the filesystem and could be read by any other app on the phone.

Vitor Ventura Follow

Originally disclosed on Cisco Talos

Medium 4.2 View original

An exploitable information disclosure vulnerability exists in the “Secret Chats” functionality of the Telegram Android messaging application version 4.9.0. The “Secret Chats” functionality allows a user to delete all traces of a chat, either by using a time trigger or by direct request.

Vitor Ventura, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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 Telegram delegated photo capture to an external camera app via a generic intent, so it could only delete the copy at the path it supplied, not the copy the camera app saved elsewhere.

Impact

Any other application installed on the device could access the leftover photos, exposing private images the user believed were deleted.

What the attacker needed

Telegram Android 4.9.0; user takes a photo in a secret chat; another app installed on the device

The fix

Telegram should take photos itself using the Camera2 API so the image data is never handed to a third-party app.

How it was found

  1. Take a picture to send over a secret chat.
  2. The external camera app saves its own copy on the device filesystem.
  3. Delete the secret chat or let it self-destruct.
  4. Telegram removes only the copy at its own path, leaving the camera app's copy behind.

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.

Secret Chats are meant to leave no trace, so when you delete one, its photos should be gone too. Telegram asked the phone's camera app to take the picture, and that camera app kept its own copy in a normal folder. Because that folder is shared, other apps on the phone could still find the photo after the chat was deleted.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Vitor Ventura

View all

3 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.