字号·· | 护眼
theregister

研究人员在5款AI开发者工具中发现漏洞,OpenAI和微软的缺陷仍未修复Researchers find bugs in 5 AI developer tools, with OpenAI and Microsoft flaws still unpatched

点「原文对照」整页切到原文,或双击某段只看那段的原文。

五款流行的 AI 开发工具中存在多个漏洞,可能允许攻击者在宿主机器上执行代码、读取并窃取文件,或伪造浏览器地址栏。研究人员表示,OpenAI 的 Codex 和微软的 VS Code 中的缺陷仍未修补,可能使使用受影响配置的开发者面临风险。

Multiple vulnerabilities in five popular AI developer tools could allow attackers to execute code on a host machine, read and steal files, or spoof browser address bars. Researchers say flaws in OpenAI's Codex and Microsoft's VS Code remain unpatched, potentially putting developers who use affected configurations at risk.

AI 安全初创公司 Forever Security 在 Cursor、GitHub Copilot、Anthropic 的 Claude Desktop、VS Code 和 Codex 中发现了漏洞,并向受影响厂商披露了其中四个缺陷。GitHub 在未收到 Forever Security 报告的情况下,独立修复了 Copilot 的漏洞。这五款工具共享一个共同的安全弱点:嵌入式浏览器被授予了超出传统浏览器的能力。

AI security startup Forever Security discovered vulnerabilities in Cursor, GitHub Copilot, Anthropic's Claude Desktop, VS Code, and Codex, and disclosed four of the flaws to the affected vendors. GitHub independently fixed the Copilot vulnerability without receiving a report from Forever Security. All five share a common security weakness: embedded browsers granted capabilities beyond those available to conventional browsers.

Forever Security 研究员 Gal Weizman 在周四发布的报告中写道:“每款工具都‘以超出普通浏览器允许的方式丰富了其嵌入式浏览器,而这些丰富功能破坏了传统的威胁模型——作为代理输入、作为标签页自身地址的权威,或作为触达宿主的途径’。” Forever 将这类漏洞命名为 “Embrace”,取自 “EMbedded BRowser”(嵌入式浏览器)的缩写,并表示这些缺陷导致 Cursor 出现代码执行,Claude Desktop、Codex 和 VS Code 出现数据窃取,GitHub Copilot 出现地址栏伪造。

Each tool “enriched its embedded browser beyond what a normal browser allows, and those enrichments undermined the traditional threat model - as agent input, as the authority on a tab’s own address, or as reach onto the host,” Forever researcher Gal Weizman wrote in a Thursday report. Forever dubbed this class of vulnerability “Embrace,” short for EMbedded BRowser, and said the flaws led to code execution in Cursor, data theft in Claude Desktop, Codex, and VS Code, and address bar spoofing in GitHub Copilot.

以下是各工具的具体情况,首先从 Cursor 开始。Cursor:任意代码执行典型网页无法在宿主计算机上运行命令,因为网页的 JavaScript 无法与本地应用通信。然而,Cursor 的集成浏览器允许网页调用代理的编辑器。代理将其读取为指令并予以执行,但这些指令对人类用户保持隐藏。这使得编码代理面临提示词注入攻击,可能允许攻击者在宿主机器上执行命令。

Here’s what each of these looks like, starting with Cursor. Cursor: arbitrary code execution Typical web pages can’t run commands on the host computer because a web page’s JavaScript cannot talk to local apps. Cursor’s integrated browser, however, allows a page to call the agent’s composer. The agent reads this as instructions and follows them, but the instructions remain hidden from human users. This opens the coding agent up to prompt injection attacks that could allow an attacker to execute commands on the host machine.

研究人员于 9 月 10 日向 Cursor 披露了该漏洞,厂商于 10 月 1 日悄悄修补了该缺陷。

The researchers disclosed the vulnerability to Cursor on September 10, and the vendor silently patched the flaw on October 1.

据 Forever 称,Cursor 并未就该问题发布安全公告,也未回应研究人员的披露。Cursor 同样未回复 The 的置评请求。GitHub Copilot:地址栏欺骗在正常的浏览器操作中,网页无法更改地址栏的内容。Weizman 写道:“Copilot 的浏览器预览工作方式不同。某些页面在不加载新页面的情况下更改其地址,而应用并不总能察觉到这一点。因此 Copilot 允许页面自行告知应用其地址。”

According to Forever, Cursor did not publish a security advisory about the issue or respond to the researchers' disclosure. Cursor also did not reply to The’s request for comment. GitHub Copilot: address bar spoofing Under normal browser operations, a webpage cannot change the content of the address bar. “Copilot’s browser preview works differently,” Weizman wrote.

该应用仅检查文本是否看起来像网址——以 http、https 或 file 开头——但并未核查标签页实际指向何处。这可被滥用,诱使嵌入式浏览器在其地址栏显示伪造的 URL——例如 ——同时在底层加载欺诈网站——如钓鱼页面。研究人员于 9 月 26 日在 GitHub Copilot 1.1.27 版本中发现了该地址栏欺骗缺陷。GitHub 在未收到 Forever 的漏洞报告的情况下,于 10 月 13 日在后续的 Copilot 版本(1.1.29)中独立修复了该缺陷。我们联系了 GitHub,但未收到回复。

“Some pages change their address without loading a new page, and the app cannot always see that. So Copilot let the page tell the app its own address.”The app checked only whether the text looked like a web address, starting with http, https or file, but it didn’t check where the tab really pointed to. This can be abused to trick the embedded browser into displaying a spoofed URL - such as- in the address bar, while loading a fraudulent website - like a phishing page - underneath. The researchers found the address-bar spoofing flaw in GitHub Copilot 1.1.27 on September 26. GitHub independently fixed the flaw in a later Copilot build (1.1.29) on October 13 without receiving a vulnerability report from Forever.

Claude Desktop、Codex 和 VS Code:任意文件读取这三家厂商的编程助手均允许在内置浏览器中打开的本地 HTML 文件突破其边界并访问其他文件。Claude Desktop 和 VS Code 均允许本地页面访问其各自的项目文件夹,但研究人员发现,这些限制不适用于 Web Worker——一种允许 JavaScript 在独立于页面主线程的后台线程中运行的浏览器功能。

We reached out to GitHub and did not receive a response. Claude Desktop, Codex, and VS Code: arbitrary file read All three of these vendors’ coding assistants allow local HTML files opened in the built-in browser to escape its boundaries and access other files.

这意味着本地页面可以启动一个 Worker,而该 Worker 可绕过限制访问机器上的任意文件。然而,Codex 并没有这一相同限制,这意味着本地页面无需 Worker 即可直接读取任意文件。

Both Claude Desktop and VS Code allow local pages access to their respective project folders, but the researchers found that these restrictions did not apply to web workers – a browser feature that allows JavaScript to run in a background thread, separate from the page's main thread. This means a local page can start a worker, and the worker can bypass restrictions to reach any file on the machine.

Weizman 表示,他的团队于 7 月 23 日向 Anthropic 披露了该问题,这家 AI 厂商以“工作区信任”门控安全边界为由,判定该 Claude Desktop 漏洞报告无效。然而据 Weizman 称,仅一天后,Noma Security 报告了同一缺陷,Anthropic 却将该报告判定为有效。对于这两份漏洞报告以及 Forever 的事件时间线,Anthropic 未回应 The 的置评请求。

Codex, however, didn’t have this same restriction, meaning a local page could read any file directly without a worker. Weizman said his team disclosed the issue to Anthropic on July 23, and the AI vendor declined the Claude Desktop bug report as invalid for a “workspace trust” gated security boundary. A day later, however, Noma Security reported the same flaw, according to Weizman, and Anthropic accepted the report as valid.

Forever 于 7 月 27 日向 OpenAI 披露了 Codex 漏洞,但未收到回复。该缺陷仍未修复,但 OpenAI 发言人告诉 The,公司知悉该问题并正在着手解决。9 月 10 日,Forever 向微软披露了 VS Code 漏洞,称该厂商同样以无效的“工作区信任”门控安全边界问题为由予以驳回。研究人员声称该漏洞仍未修复。微软未回应我们的置评请求。®

Anthropic did not respond to The’s questions about either bug report or Forever’s timeline of events. Forever disclosed the Codex bug to OpenAI on July 27 and didn’t get a response. The flaw remains unpatched, but an OpenAI spokesperson told The that it's aware of the issue and working to address it. On September 10, Forever disclosed the VS Code vulnerability to Microsoft and says the vendor also labeled it as an invalid workspace trust gated security boundary issue. The researchers claim it remains unpatched. Microsoft did not respond to our request for comment.®

阅读媒体原文 ↗