Protect.Computer
NEWS

Researchers Claim Two Ways Past Telegram's New Android Widget Filter

· 3 min read · Got hacked Device safety
Researchers Claim Two Ways Past Telegram's New Android Widget Filter

Security company NebuSec says a malicious Telegram widget can get past the security filter Telegram added to its Android app last week and run code outside it, according to The Hacker News. Widgets are small interactive blocks that bots send inside chat messages, and their JavaScript runs on the user’s phone. NebuSec demonstrated two separate 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 bot’s widget on Telegram for Android 13.2.2 (7303) opening the phone’s calculator app. NebuSec ran the demonstration on a Telegram test server, because only approved bots can send widgets on the live service now.

The background is a dispute over how serious widgets are. Bots could start sending widgets last week, and two days later an account called V12 posted a video on X claiming any Telegram message could now be used to run remote code. Telegram then moved QuickJS, the engine that runs widget JavaScript, into its own process on Android and added a seccomp filter that can block or record that process’s system calls. The Hacker News reports that in the published source code for 13.2.2 the filter is set to an audit mode: it blocks attempts to start new programs but only records the other listed calls. The published code does not show whether the version people install uses the same setting. Telegram CEO Pavel Durov wrote last week that “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 fully patched on the server side. That post came before NebuSec’s demonstration.

NebuSec’s write-up names no CVE, lists no fixed version, and, per The Hacker News, does not say what the code could reach beyond the calculator, whether a user had to tap a widget first, or whether the bugs were reported to Telegram. The Hacker News also reports that Kaspersky said it detected suspected exploitation of a Telegram widget flaw when people visited some Telegram channels, where a PowerShell script ran unnoticed and launched WebRAT (also called Salat Stealer). Kaspersky’s warning does not identify the flaw or Telegram version, does not report victim numbers, and does not link the activity to either demonstration; it advises not running widgets until a fix is released.

How to check if you’re affected

NebuSec’s demonstration used Telegram for Android version 13.2.2 (7303); the researchers’ write-up lists no fixed version, and The Hacker News says the published Android source was no newer as of this week. Check which version of the app is installed on your device and watch for a newer release from Telegram.

  • Telegram’s widget documentation says widgets currently work in production only in a private chat with the bot that sends them. The Hacker News cites a reply from a telegram-bot-api contributor that general bots are not allowed to send widgets even in private chats, and says no later message in that thread says which bots are still allowed.
  • Kaspersky’s advice, as relayed by The Hacker News, is not to run widgets until a fix is released.
  • Being cautious about starting unfamiliar bots is our suggestion; neither NebuSec nor Telegram gives that guidance.

Sources

Related reading