This follows our earlier coverage, Telegram Widgets Hit by RCE Demos and a Kaspersky Malware Warning Days After Launch. The new development is a claim that Telegram's fix does not hold.
What is new
NebuSec says a malicious widget can bypass the security filter Telegram added to its Android app last week and run code outside it. The firm claims two RCE exploits:
- A widget bug the filter does not cover.
- A widget bug the filter does cover, chained with a kernel bug.
In their video, a widget on Android Telegram 13.2.2 (7303) opens the phone's calculator app. Testing was done on a Telegram test server, since only approved bots can send widgets on the live service. NebuSec is withholding technical details, names no CVE, and does not say whether it reported the bugs. These are researcher claims, not independently confirmed.
Why the filter may be weak
Per the published source and the researchers' background:
- Widget sandbox rules, such as no network access, live in the QuickJS engine's own code. One use-after-free or out-of-bounds write there could expose process memory.
- The seccomp filter blocks a few dozen system calls such as
ptrace,bpfandmount, but leavesioctlunfiltered. - In the published source the filter is in audit mode: it blocks launching new programs but only logs other listed calls. Whether production builds use the same setting is unconfirmed.
- All widgets run in one process, so a hijacked widget could share memory with other bots' widgets.
Telegram's position
Telegram moved QuickJS into its own process on Android and added the filter. A telegram-bot-api contributor said general bots are not allowed to use widgets, even in private chats. Pavel Durov has said no one could be hacked just by receiving a message and that the earlier issue was patched server-side. No fixed version has been listed, and the published Android source is no newer than 13.2.2 (7303).
Separate activity
Kaspersky reported suspected exploitation of an unnamed Telegram widget flaw when users visited some channels, installing WebRAT (Salat Stealer) through a PowerShell script. It does not link this to either demonstration.
What to do
- Kaspersky advises not running widgets until a fix is released.
- Do not start unfamiliar bots or open widgets from untrusted channels.
- Keep Telegram updated and watch for a release that addresses these claims.
