Flaws in Telegram & WhatsApp on Android Put Data at Risk

App settings combined with Android behavior can put data integrity at risk for WhatsApp and Telegram users.

Dark Reading logo in a gray background | Dark Reading

WhatsApp and Telegram are personal messaging apps that have, between them, more than 1.7 billion users around the world. They are frequently used by political activists, healthcare providers, and businesses around the world because of the security of their "always encrypted" communications. But recent research shows that there are security vulnerabilities that could open the services to manipulation and data theft for users on Android devices.

In a blog post today, Symantec researchers Yair Amit and Alon Gat discussed a media file jacking flaw in the way that the Android apps store files that the user receives. The researchers note that the flaw isn't in the app code, but in the app logic, specifically where the apps will store files that they receive.

"We found the vulnerability in the way on Android that WhatsApp (by default) and Telegram (in a certain setting) can store attachments like photos and audio messages before the user is able to open the original file," says Domingo Guerra, senior director of modern OS security at Symantec.

The trouble is that Android can store files in two locations — internal and external storage. Data in internal storage can only be accessed by the app that stored it. Data in external storage is defined as world readable and writeable — any app or user can read and modify the data.

WhatsApp stores received media files in external storage by default. Telegram uses external storage for its "Save to Gallery" feature. In both cases, the files are stored to publicly accessible directories.

According to Guerra, there are several kinds of damage that could result from the ability to intercept and manipulate files on an Android device — damage beyond the simple ability to see what sort of files are being sent back and forth between users.

In the blog post on the vulnerability, the researchers point out image manipulation, in which faces are changed or individuals inserted into images; audio manipulation, in which a "deepfake" technology makes it seem an individual is saying something they never actually said; invoice manipulation, in which the amount and payment details in a legitimate invoice are changed to send money into the attacker's account; and "fake news," in which the material sent out by a legitimate news organization is changed to become inaccurate, as possible harm from media file jacking.

To add to the vulnerability's seriousness, "You don't have to attack Telegram or WhatsApp for this to happen," says Guerra. "A device that already has malware that's monitoring for external storage could be vulnerable to replaced documents."

The apps' global footprints mean that the potential impact of these vulnerabilities. For example, Otavio Freire, CTO and president of SafeGuard Cyber, says, "In South America two years ago, doctors didn't use WhatsApp to communicate at all. Now, the adoption is 90% of Brazilian doctors who use WhatsApp for daily business."

And Freire says that more companies will be — and should be — using WhatsApp, Telegram, and other messaging apps going forward. "Companies that come to WhatsApp have come to it because it has significantly impacted their business processes," he says. "They do better marketing. They do better sales. They do better customer service. That's where the customers are, so if you ignore it, you're not where your customers are."

As for protection against the vulnerabilities, both Guerra and Freire say that some steps will be up the individual device owners — like setting WhatsApp to store files in internal storage and not using the "Gallery" function of Telegraph.

In addition, Freire points to the importance of saving archival copies of any corporate information transmitted by either app (or other messaging apps). In an era that sees the possibility of "deepfakes," they are necessary insurance against unwanted information going out to employees or customers.

Related content:

 

Black Hat USA returns to Las Vegas with hands-on technical Trainings, cutting-edge Briefings, Arsenal open-source tool demonstrations, top-tier security solutions, and service providers in the Business Hall. Click for information on the conference and to register.

About the Author

Curtis Franklin, Principal Analyst, Omdia

Curtis Franklin Jr. is Principal Analyst at Omdia, focusing on enterprise security management. Previously, he was senior editor of Dark Reading, editor of Light Reading's Security Now, and executive editor, technology, at InformationWeek, where he was also executive producer of InformationWeek's online radio and podcast episodes

Curtis has been writing about technologies and products in computing and networking since the early 1980s. He has been on staff and contributed to technology-industry publications including BYTE, ComputerWorld, CEO, Enterprise Efficiency, ChannelWeb, Network Computing, InfoWorld, PCWorld, Dark Reading, and ITWorld.com on subjects ranging from mobile enterprise computing to enterprise security and wireless networking.

Curtis is the author of thousands of articles, the co-author of five books, and has been a frequent speaker at computer and networking industry conferences across North America and Europe. His most recent books, Cloud Computing: Technologies and Strategies of the Ubiquitous Data Center, and Securing the Cloud: Security Strategies for the Ubiquitous Data Center, with co-author Brian Chee, are published by Taylor and Francis.

When he's not writing, Curtis is a painter, photographer, cook, and multi-instrumentalist musician. He is active in running, amateur radio (KG4GWA), the MakerFX maker space in Orlando, FL, and is a certified Florida Master Naturalist.

Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.

You May Also Like


More Insights