ShieldPack SHIELD PACK
From 1401 onwards.

Where would you like to start?

Services, updates, and ways to contact us, all in one place

Pricing and orders →

Use the bot or chat with us—whichever you prefer

ShieldPack posts

Researchers Claim Two RCE Exploits That Bypass Telegram’s New Android Defenses

About 3 min read

**Telegram’s New Android Security Filter Is Bypassed by Malicious Widgets, Researchers Say**
Security researchers at NebuSec have announced that a malicious widget can circumvent the security filter Telegram added to its Android app last week, allowing code to run outside the app’s sandbox. The claim is based on a demonstration performed on a Telegram test server, where only approved bots can send widgets. The researchers’ video, posted on X by an account called V12, shows a bot’s widget on Android 13.2.2 (7303) opening the phone’s calculator app, a clear sign that the filter can be bypassed.
Widgets are small interactive blocks that bots embed in chat messages. Their JavaScript code executes directly on the user’s device, and the Telegram documentation states that widgets run in a sandbox with rules such as no network access. Those rules are enforced by the QuickJS engine, which the researchers say can be subverted by a single use‑after‑free or out‑of‑bounds write bug that lets a script read and write the process’s memory, effectively erasing the sandbox protections.
Telegram’s recent update moved QuickJS into its own Android process and added a seccomp filter to block or record system calls. The filter, visible in the source code for Telegram for Android 13.2.2 (7303), blocks a handful of calls—including ptrace, bpf, and mount—while allowing all others. It also leaves ioctl unfiltered. In audit mode, the filter records the listed calls but still permits them to run, a setting that the source code comments say will remain until device logs show the engine never makes those calls. It is unclear whether the version users actually install uses the same audit configuration.
NebuSec’s technical analysis identifies two distinct ways to escape the filter. The first exploits a widget bug that the filter does not cover, while the second chains a widget bug that the filter does cover with a kernel bug. In both cases, the researchers were able to run code outside the filter’s protection. Their demonstration does not reveal whether the code could reach beyond the calculator app, nor does it state whether the user must tap the widget or otherwise interact with the bot to trigger the exploit.
Researchers Claim Two RCE Exploits That Bypass Telegram’s New Android Defenses
The researchers are withholding further details, including a CVE identifier and whether they have reported the bugs to Telegram. Their write‑up lists no fixed version, and the published Android source code is no newer than 13.2.2 (7303) as of this week. Telegram’s own bot‑API project notes that, as of last week, general bots are not allowed to use widgets even in private chats, and no subsequent update has clarified which bots remain permitted or whether the restriction has been lifted.
Telegram’s chief executive, Pavel Durov, addressed the issue in a channel post late last week, stating that “no one could be hacked just by receiving a message.” He added that a user must first start a third‑party service and that the server‑side patch had already been applied. The company also claimed that the problem highlighted in V12’s first demonstration had been fixed and that the fix had reached all users.
Separately, security vendor Kaspersky reported that it had detected suspected exploitation of a flaw in Telegram widgets when users visited certain Telegram channels. In that activity, a PowerShell script ran silently and downloaded and launched WebRAT, also known as Salat Stealer. The malware can take control of the infected system and steal data from cryptocurrency wallets and Telegram accounts. Kaspersky’s warning does not identify the specific flaw, the Telegram version affected, or the number of victims, and it advises users not to run widgets until a fix is released.
For ShieldPack readers, the key takeaway is that widgets—once a feature limited to approved bots—can now be used to execute code on Android devices, potentially bypassing both the app’s sandbox and its new security filter. The vulnerability remains unpatched in the publicly available source code, and Telegram’s response has not yet addressed the specific widget bug. Until a definitive fix is released and the filter is switched from audit to blocking mode, users should exercise caution when interacting with widgets, especially from unfamiliar bots or channels.

Source: The Hacker News · Cybersecurity

ShieldPack media