Skip to content
Info disclosure Write-up Intermediate

Technical background

WhatsApp and Telegram for Android store received media files in public external storage, and load them into the chat UI after a delay. A malicious app with write-to-external-storage permission could replace or alter those files before the user sees them, enabling image manipulation, invoice fraud, audio spoofing, and fake news.

symantec.com

Published on symantec.com

WhatsApp and Telegram media files could be exposed and manipulated by malicious actors according to new research by Symantec’s Modern OS Security team, focused on the protection of mobile endpoints and operating systems. The security flaw, dubbed “Media File Jacking”, affects WhatsApp for Android by default, and…

The author, on symantec.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the apps store received media in world-writable external storage and load it into the chat UI without verifying its integrity, leaving a window for another app to modify it.

Impact

Attackers could manipulate personal photos, invoices, voice messages, and channel media, potentially leading to extortion, payment fraud, or disinformation; the text does not state that either vendor fixed the issue.

What the attacker needed

Victim installs a malicious app; malicious app has write-to-external-storage permission; media received via WhatsApp or Telegram

The fix

The apps should store media in internal storage or verify a hash of each file before loading it, and users can disable saving media to external storage as a mitigation.

How it was found

  1. A user installs a seemingly legitimate app that requests write-to-external-storage permission.
  2. The malicious app runs in the background and monitors the public media directories for changes.
  3. When a media file is received and written to disk, the app quickly replaces or modifies it before the messaging app loads it.
  4. The messaging app loads the manipulated file from the public directory and displays it in the chat UI.
  5. The recipient sees the altered file and its thumbnail without any indication that it was changed.

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 write-up has not been written yet. The Original tab links to the source.

Android apps can save files in two places: private internal storage that only the app can access, or public external storage that any app can read and write. WhatsApp (and Telegram if 'Save to Gallery' is on) saves received photos and documents in public storage, then shows them in the chat a moment later. A malicious app on the phone can watch that public folder and swap the file in that short window, so the recipient sees a fake photo or invoice instead of the real one.

What is Info disclosure?

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

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.