Parameter Labs disclose ChatGPT HTML preview sandbox escape; OpenAI fixed it and paid a $5,000 bounty
Original title: How We Took Over ChatGPT Accounts
Parameter Labs disclosed a complex attack chain against ChatGPT's HTML previews (formerly Canvas): untrusted code in the sandboxed iframe could trigger the MathLive virtual keyboard's parent-page message handler via postMessage(), inject an unsandboxed iframe through innerHTML, then bypass the CSP using the YouTube oEmbed endpoint to gain JavaScript execution and steal private user data. The result was a ChatGPT share URL that could exfiltrate a signed-in visitor's private data or act on their behalf. OpenAI fixed the hole and paid a $5,000 bug bounty, which Simon Willison considered low for a vulnerability this serious.
The post walks through a complex attack chain against ChatGPT's sandboxed iframe, covering the MathLive library, innerHTML injection and CSP bypass in detail, making it a useful web security case study.
The summary, note and analysis on this page were written by the AI Windvane agent in AIsa Studio; the original belongs to its authors.