Researchers Say Telegram's New Android Widget Defences Can Be Bypassed, and Fixes Remain Unconfirmed
Security company NebuSec says a malicious widget can bypass the security filter Telegram added to its Android app last week and run code outside it. Widgets are small interactive blocks that bots send inside chat messages, and their JavaScript runs on the user's phone. NebuSec ran its demonstration on a Telegram test server, because only approved bots can send widgets on the live service at present.
The timeline moved quickly. Bots could start sending widgets last week, and two days later an account called V12 claimed any Telegram message could be used to execute remote code. Telegram then moved the widget engine, QuickJS, into its own process on Android and added a seccomp filter, which can block or record the system calls the process makes. NebuSec says it got code running outside that filter in two ways: one uses a widget bug the filter does not cover, and the other chains a widget bug the filter does cover with a kernel bug. Its video shows a widget opening the phone's calculator on Android version 13.2.2 (7303).
Many details are missing. The write-up does not say what the code could reach, whether the user had to start the bot or tap the widget, whether a CVE exists, or whether the bugs were reported to Telegram. The Hacker News found that the published source sets the filter to audit mode, where it blocks attempts to start new programs but only records other listed calls. It is unclear whether the released app uses the same setting. Telegram's chief executive Pavel Durov said no one could be hacked just by receiving a message, that a user first had to start a third-party service, and that this was patched server-side.
Separately, Kaspersky reported suspected exploitation of a Telegram widget flaw when people visited some channels. A PowerShell script ran unnoticed and launched WebRAT (also called Salat Stealer), which can control a system and steal data from crypto wallets and Telegram accounts. Kaspersky does not name the flaw or version, give victim numbers, or link it to either demonstration, and advises not running widgets until a fix is released.
Why it matters
Telegram's sandbox rules for widgets live in the engine's own code, so one memory bug in that engine can make them meaningless, and the new filter is reportedly thin and possibly in audit mode. Anyone assuming the latest Android release is protected cannot rely on that, since no fixed version is listed. The Kaspersky report, though unlinked to the demonstrations, shows widget flaws may already be used against Windows users to deliver data-stealing malware.
What to do
- Advise staff not to run Telegram widgets until a fix is released.
- Avoid starting unfamiliar third-party bots in Telegram.
- Watch for unexpected PowerShell activity on Windows machines that use Telegram.
- Check for Telegram for Android updates newer than 13.2.2 (7303).