Researchers Claim Two RCE Exploits That Bypass Telegram’s New Android Defenses
A malicious widget can bypass the security filter that Telegram added to its Android app last week and run code outside it, according to NebuSec, a security company. Widgets are small interactive blocks that bots send inside chat messages, and their JavaScript runs on the user's phone. The researchers ran their demonstration on a Telegram test server, because only approved bots can send
Two previously unknown remote code execution exploits in Telegram's new Android defenses have been discovered by researchers at NebuSec. Widgets, small interactive blocks sent via chat messages, run JavaScript on users' phones. Previously, Telegram blocked such execution by running widget JavaScript in a separate process with enhanced security measures. However, NebuSec found ways to bypass these protections.
The first exploit exploits a bug in the widget mechanism that gets around the security filter. The second combines a widget bug covered by the filter with a kernel-level bug to circumvent the protection. NebuSec demonstrated how a malicious widget could bypass the filter and open the phone's calculator app on Telegram version 13.2.2 (7303).
The researchers emphasize that the vulnerabilities lie in the QuickJS JavaScript engine used for widget execution. A single use-after-free or out-of-bounds write bug in QuickJS allows a script to read and write the process's memory, rendering the security filters ineffective. The security filter itself allows all system calls except for a few dozen, including ioctl, which remains unfiltered.
Telegram has since patched the vulnerabilities, but the researchers have withheld the full details to give developers time to address the issues. Telegram's chief executive, Pavel Durov, stated that the initial vulnerability had been fully patched on the server side, and no user would be hacked by simply receiving a message. However, other security firms have reported suspicious activity exploiting similar flaws.
Written by urgent.news from The Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.