Recent findings by security firm NebuSec have revealed vulnerabilities in Telegram’s Android app, allowing malicious code execution despite recent security updates. These flaws, associated with Telegram’s widget system, have raised concerns over the application’s defense mechanisms.
Exploiting Widget Vulnerabilities
Widgets in Telegram serve as interactive elements in chat messages, utilizing JavaScript on users’ devices. The discovery by NebuSec showed that these widgets could bypass Telegram’s security measures. Although Telegram attempted to enhance security by isolating QuickJS, the JavaScript engine, and implementing a seccomp filter, researchers found ways to execute code outside these defenses.
NebuSec demonstrated two methods to exploit these vulnerabilities. One method uses a widget bug not covered by the filter, while the other combines a widget bug with a kernel bug. Their demonstration on Android 13.2.2 (7303) showed a bot’s widget bypassing the filter to open a calculator app, indicating potential broader access.
Telegram’s Response and Security Implications
Telegram’s recent updates aimed to mitigate these threats by restricting general bot access to widgets and adjusting security settings. Despite these measures, the published source code still allows certain system calls, raising questions about the effectiveness of the current defense strategy.
Telegram’s CEO, Pavel Durov, reassured users that merely receiving a message could not compromise their security. However, he acknowledged that starting a third-party service was necessary for exploitation, a vulnerability they claim to have patched.
Broader Security Concerns
In addition to NebuSec’s findings, Kaspersky reported potential exploitation of Telegram widget vulnerabilities through malicious scripts. These scripts, running unnoticed, could deploy malware like WebRAT, posing risks to user data, including crypto wallets and Telegram accounts.
While the malware warning from Kaspersky did not specify the exact flaw or affected Telegram version, it highlighted the importance of cautious widget use until a comprehensive fix becomes available.
The ongoing analysis and responses from Telegram and security experts underline the critical importance of robust security measures in mobile applications. Users are advised to stay vigilant and regularly update their apps to ensure maximum protection.
