OpenAI Patches ChatGPT Share-Link Flaw That Hijacked Sessions
TL;DR
- A shared ChatGPT link was the victim's only required action; once clicked, the five-component chain completed in roughly 4.5 seconds and exfiltrated private conversations.
- OpenAI upgraded severity from P2 to P1 after confirming the injected code could read private conversations the attacker had never seen, then paid a $5,000 bounty.
- Simon Willison called the $5,000 bounty cheap for a vulnerability of this severity, pointing to a gap between OpenAI's public safety posture and its bounty program's valuation of account-takeover bugs.
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, according to researchers at the security firm Parameter. The Hacker News reported that OpenAI shipped a server-side fix eight days after Parameter's October 18 report, rated it P1, and paid a $5,000 bounty.
The chain stitched three design flaws together. ChatGPT's Preview feature wraps user-supplied HTML in a locked-down frame on a separate origin so it cannot read the main chatgpt.com page. But when Preview rendered interactive graphs, ChatGPT also pulled in the MathLive math library on the main page, and MathLive listened for cross-frame messages about keyboard settings. "A message passed between browser frames is safe only if the receiver checks who sent it," the researchers wrote; Parameter found the listener "accepted a keyboard message from any sender, and that the message was allowed to carry raw HTML." From there, "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." YouTube was already on ChatGPT's content security policy allowlist, so the final payload loaded without complaint.
The victim did not have to install anything, join a workspace, or sign in through the attacker. In the most reliable version, they "opened the link and clicked ChatGPT's Preview button once." In a later version Parameter set the page to open Preview automatically, so clicking the link was the only step.
Once inside the chatgpt.com origin, the attacker's script could enumerate the victim's recent conversations, read private chats that had never been shared, and call ChatGPT's authenticated APIs directly. "Essentially, we could perform any action on behalf of the victim's ChatGPT account," the researchers wrote. OpenAI reproduced both the code-execution and private-chat proof-of-concept, escalated the severity from P2 to P1, rolled a fix across two versions of ChatGPT's web frontend, and closed the issue on October 26. The patch was entirely server-side; users had to do nothing. The disclosure, by The Hacker News reporter Swati Khandelwal, lands in a dense run of AI-app security coverage — close to two hundred items on our cybersecurity tracker over the last 90 days.
What others are reporting
-
Parameter Read →
First-party writeup from the discovering firm: full technical chain, exact disclosure timeline, and confirmation of the October 26 fix across both ChatGPT frontend versions.
Opening the shared link was the victim's only click.
-
Simon Willison Read →
Independent editorial critique arguing the $5,000 bounty was underpriced for a one-click account takeover, adding a policy dimension absent from the technical writeups.
Untrusted code in an iframe could insert HTML and inject a new iframe without sandbox restrictions.
-
Ostorlab Read →
Shifts focus to supply-chain exposure: any developer embedding MathLive on an authenticated origin carries this risk, with code-review steps and integration-level defensive guidance.
A malicious public ChatGPT share link could run the attacker's JavaScript inside the signed-in session of whoever opened it.
-
DEV Community Read →
Turns the vulnerability into a detection tool: a 20-line Python scanner that flags unvalidated postMessage listeners and confirms the patched MathLive version passes it.
A shared ChatGPT link + MathLive's message listener that trusted any sender + innerHTML sink = the session token.
-
AI/TLDR Read →
Structured threat assessment confirming OpenAI upgraded severity from P2 to P1 after verification and clarifying the YouTube oEmbed step was a CSP workaround, not the root cause.
The injected code could list the victim's recent conversations, fetch a private conversation the attacker had never seen, and send the data to an outside server.
Originally reported by thehackernews.com
Read the original article →Original headline: Shared ChatGPT Link Could Hijack Victim's Session via MathLive postMessage, OpenAI Pays $5K Bounty