Hacktron discloses takeover of ChatGPT and Codex accounts using libheif vulnerability and OpenAI SSO flaw
Hacking OpenAI
Security team Hacktron discloses that they chained a libheif heap buffer overflow with an OpenAI SSO identity configuration flaw to take over the ChatGPT and Codex accounts of multiple OpenAI employees, and thereby accessed internal repositories. The attack chain started from the HEIC/HEIF image upload path on the Discourse forum, triggered the libheif parsing vulnerability via ImageMagick, and then extended forum account privileges to ChatGPT and Codex through OpenAI SSO. The team used Claude Opus 4.8 and Opus 5 to assist in developing the exploit code, going from vulnerability discovery to internal repository access in less than 72 hours; they stopped testing after submitting a harmless PR in the internal monorepo using an employee's Codex account as proof of access. OpenAI paid a $6,500 bounty, and Discourse completed a fix within days of receiving the report and began sandboxing ImageMagick.
Full disclosure of the exploitation chain from the libheif heap overflow to the OpenAI SSO flaw, with a 72-hour timeline, showing how AI agents compress the cost of exploit development.