A malicious widget can bypass the security filter that Telegram added to its Android app last week and run code outside it, according to NebuSec, a security company.
Widgets are small interactive blocks that bots send inside chat messages, and their JavaScript runs on the user's phone. The researchers ran their demonstration on a Telegram test server, because only approved bots can send widgets on the live service now.
Bots could start sending widgets last week. Two days later, an account called V12 posted a video on X claiming that any Telegram message could now be used to execute remote code.
Telegram then put QuickJS, the small engine that runs widget JavaScript, into its own process on Android. It also added a seccomp filter, which can block or record the system calls that the process makes. Both changes appear in the source code it published for Telegram for Android 13.2.2 (7303).
NebuSec said in a technical analysis published earlier this week that its researchers got code running outside that filter in 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.
In their video, a bot's Telegram widget on Android 13.2.2 (7303) bypasses the filter and opens the phone's calculator app, the researchers say.
Their write-up and their demonstration post on X do not say what the code could reach beyond that, such as the app's messages or the rest of the phone.
Source link







