共享的 ChatGPT 链接可能在你的会话中运行攻击者代码并读取私密聊天
Swati Khandelwal 2026年10月31日
漏洞 / Web 安全
安全公司 Parameter 的研究人员显示,恶意的 ChatGPT 分享链接可以在任何打开该链接的用户已登录的会话中运行攻击者的代码,从而允许他们读取用户的私密对话。
研究人员于 10 月 18 日通过 OpenAI 的漏洞赏金计划报告了该缺陷,OpenAI 在八天后修复了它,并将其评级为 P1,即最严重的类别。
这个陷阱是一个通过公共链接共享的普通 ChatGPT 对话。它可以像任何真实的共享聊天一样发送:通过电子邮件、作为聊天消息、作为支持工单或作为社交帖子。
受害者无需安装任何东西、加入工作区或通过攻击者登录。在攻击最可靠的版本中,他们打开链接并点击一次 ChatGPT 的“预览”按钮。在随后的版本中,Parameter 将页面设置为自动打开预览,因此打开链接是唯一的步骤。
攻击者能做什么
一旦链接打开,攻击者的代码就在受害者已登录的会话中运行,拥有与真实 ChatGPT 网站相同的访问权限。它列出了受害者的最近对话,打开了一个从未向攻击者共享的私密聊天,并将其中的一小部分发送到由研究人员控制的服务器。
该代码直接调用 ChatGPT 自身的已登录 API,而不是复制屏幕上恰好显示的内容。因为它以受害者完整的 Web 访问权限运行,其影响范围不仅限于这些聊天。“本质上,我们可以代表受害者的 ChatGPT 账户执行任何操作,”研究人员写道。
这项工作是一个受控测试。Parameter 没有报告该缺陷的任何现实世界使用情况,并且在单独的账户之间运行了其私密聊天概念验证,而不是针对真实用户。
链接如何突破沙箱
根据 Parameter 的说法,链式反应的工作原理如下:ChatGPT 可以通过一个名为“预览”的功能将聊天中的 HTML 块转换为小型网页。由于该页面可以包含任何代码,ChatGPT 会在一个锁定框架内的独立 Web 地址上运行它,在那里它无法读取周围的主 ChatGPT 页面。
沙箱是有效的。突破口来自同一对话中的第二个功能。
共享聊天还包含一个交互式图表,绘制它会加载一个名为 MathLive 的数学库到主 ChatGPT 页面上。加载 MathLive 会在该处留下一个监听器,用于接受关于其屏幕键盘的消息。
浏览器帧之间传递的消息只有在接收者检查发送者身份时才是安全的。Parameter 发现该监听器接受来自任何发送者的键盘消息,并且允许消息携带原始 HTML。然后,“预览”可以跨越边界并将攻击者的 HTML 交给受信任的主页面。
该 HTML 构建了一个浏览器视为 chatgpt.com 一部分的新帧。从 YouTube 加载的脚本随后提供了在其中运行的代码。
ChatGPT 的内容安全策略限制了页面脚本的来源。它阻止了内联代码,但允许来自 YouTube 的脚本,这就是这一步骤可行的原因。
OpenAI 修复了什么,用户应该做什么
Parameter 表示 OpenAI 重现了代码执行和私密聊天概念验证,将严重性从 P2 提升到 P1,并在 ChatGPT Web 前端的两个版本中推出了修复程序。到 10 月 26 日,这两个版本都拒绝了攻击所依赖的消息。
研究人员将问题追溯至三个对齐的设计选择:
MathLive 对更改其设置的执行了操作,而没有检查发送它的帧。
允许该消息携带原始 HTML 作为键盘布局数据。
HTML 可以创建一个未沙箱化并继承了 chatgpt.com 身份的帧。
YouTube 步骤只是最后的变通方法,而不是原因。仅阻止它仍然会留下一个不受信任的“预览”能够将 HTML 推送到主站点。
ChatGPT用户无需进行任何操作。修复工作已在OpenAI端完成,无需安装或重置任何东西。
Parameter在修复措施实施后的10月28日发布了相关报告。OpenAI为该报告支付了总计5,000美元的奖金。
觉得这篇文章有趣?请在Google News、Twitter和LinkedIn上关注我们,以阅读我们发布的更多独家内容。
SHARE
Tweet
Share
Share
Share
⚡ 本周头条新闻
关键FortiSIEM漏洞现公开利用概念验证代码,可实现未认证远程代码执行
Go发布紧急更新,因未披露的安全问题阻止八个CA密钥
黑客利用Plex2Shell漏洞安装加密货币矿工和Linux代理后门
威胁日报:AI机密泄露、PingCAP源代码被盗、Signal挂断漏洞、Laravel身份验证绕过等21起事件
攻击者劫持300多个Tor出口中继以拦截SSH连接
OpenCode控制台 breach 可能已暴露OpenAI、Anthropic和Google的API密钥
Ruby修复三个正则引擎漏洞,这四个关键GitLab远程代码执行漏洞由此引发
PHP在紧急PHP2Shell补丁发布两天后警告另一处未修补的远程代码执行风险
加载更多 ▼
⭐ 精选资源
下载《2026年代理安全报告》,获取五步风险降低框架
尚无利用代码?预览验证CVE暴露情况的峰会演示
将您的AI风险优先事项与1,600名首席信息安全官(CISO)进行基准对比——下载2026年报告
获取用于治理AI代理的五阶段身份成熟度路线图
A Shared ChatGPT Link Could Run Attacker Code in Your Session and Read Private Chats
Swati KhandelwalOct 31, 2026
Vulnerability / Web Security
A malicious ChatGPT share link could run an attacker's code in the logged-in session of anyone who opened it, allowing them to read their private conversations, researchers at the security firm Parameter showed.
The researchers reported the flaw through OpenAI's bug bounty program on October 18, and OpenAI fixed it eight days later and rated it P1, its most serious category.
The trap was an ordinary ChatGPT conversation shared via its public link. It could be sent the same way as any real shared chat: by email, as a chat message, as a support ticket, or as a social post.
The victim did not have to install anything, join a workspace, or sign in through the attacker. In the most reliable version of the attack, they opened the link and clicked ChatGPT's Preview button once. In a later version, Parameter set the page to open Preview on its own, so opening the link was the only step.
What the Attacker Could Do
Once the link opened, the attacker's code ran inside the victim's signed-in session with the same access as the real ChatGPT site. It listed the victim's recent conversations, opened a private chat that had never been shared with the attacker, and sent a small portion of it to a server controlled by the researchers.
The code called ChatGPT's own signed-in APIs directly, rather than copying what happened to be on the screen. Because it ran with the victim's full web access, its reach was not limited to those chats. "Essentially, we could perform any action on behalf of the victim's ChatGPT account," the researchers wrote.
The work was a controlled test. Parameter does not report any real-world use of the flaw, and ran its private-chat proof between separate accounts rather than against real users.
How the Link Broke Out of Its Sandbox
Here is how the chain worked, according to Parameter. ChatGPT can turn a block of HTML in a chat into a small web page through a feature called Preview. Because that page can hold any code, ChatGPT runs it in a locked-down frame on a separate web address, where it cannot read the main ChatGPT page around it.
That sandbox held. The way in came from a second feature in the same conversation.
The shared chat also contained an interactive graph, and drawing it loaded a math library called MathLive into the main ChatGPT page. Loading MathLive left a listener running there that accepted messages about its on-screen keyboard.
A message passed between browser frames is safe only if the receiver checks who sent it. Parameter found that this listener accepted a keyboard message from any sender, and that the message was allowed to carry raw HTML. The Preview could then reach across the boundary and hand attacker HTML to the trusted main page.
That HTML built a new frame that the browser treated as part of chatgpt.com. A script loaded from YouTube then supplied the code that ran inside it.
ChatGPT's content security policy limits where a page's scripts may come from. It blocked inline code but allowed scripts from YouTube, which is why that step worked.
What OpenAI Fixed, and What Users Should Do
Parameter said OpenAI reproduced both the code execution and the private-chat proof, raised the severity from P2 to P1, and rolled a fix across two versions of ChatGPT's web frontend. By October 26, both versions rejected the messages the attack relied on.
The researchers traced the problem to three design choices that lined up:
MathLive acted on a message that changed its settings without checking which frame had sent it.
That message was allowed to carry raw HTML as keyboard-layout data.
The HTML could create a frame that was not sandboxed and inherited the chatgpt.com identity.
The YouTube step was only the final workaround, not the cause. Blocking it alone would still leave an untrusted Preview able to push HTML into the main site.
ChatGPT users do not need to do anything. The fix is on OpenAI's side, with nothing to install or reset.
Parameter published its writeup on October 28, after the fix. OpenAI paid a total of $5,000 for the report.
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
SHARE
Tweet
Share
Share
Share
⚡ Top Stories This Week
Critical FortiSIEM Flaw Gets Public Exploit PoC for Unauthenticated Remote Code Execution
Go Issues Emergency Update Blocking Eight CA Keys Over Undisclosed Security Concerns
Hackers Exploit Plex2Shell Flaws to Install Crypto Miners and Linux Proxy Backdoor
ThreatsDay: AI Secrets Leak, PingCAP Source Theft, Signal Hang-Up Flaw, Laravel Auth Bypass + 21 More
Attackers Hijacked Over 300 Tor Exit Relays to Intercept SSH Connections
OpenCode Console Breach May Have Exposed OpenAI, Anthropic, and Google API Keys
Ruby Fixes Three Regex Engine Bugs Responsible for Four Critical GitLab RCE Flaws
PHP Warns of Another Unpatched RCE Risk Two Days After Emergency PHP2Shell Patches
LOAD MORE ▼
⭐ Featured Resources
Download the 2026 Agent Security Report for a Five-Step Risk Reduction Framework
No Exploit Yet? Preview the Summit Demo on Validating CVE Exposure
Benchmark Your AI Risk Priorities Against 1,600 CISOs—Download the 2026 Report
Get the Five-Stage Identity Maturity Roadmap for Governing AI Agents
首次收录 · 2026-11-01 · 9.16 分