Superhuman/X ArchiveView on X
s1r1us

@S1r1u5_

On July 25, we hacked OpenAI.

Two bugs let us take over ChatGPT/Codex accounts of OpenAI employees (+some unaffiliated users) and reach connected services: Outlook, Slack, GitHub, etc.

We proved it with a PR in OpenAI’s internal codebase . It took us <72h. 🧵
Image from the post
3521.4K11.8K6.2K
s1r1us

@S1r1u5_

At a high level, this was the full exploit chain.

1. HEIC/HEIF upload
2. ImageMagick decoding
3. Heap overflow on libheif
4. RCE on community.openai.com
5. Critical OpenAI SSO flaw
6. ChatGPT/Codex takeover
7. Connected GitHub access
8. Internal repo PR #1186742
Image from the post
15611.4K411
s1r1us

@S1r1u5_

The image package libheif had a known vulnerability, fixed upstream, but the fix never flagged as security-relevant and was still present in Discourse. Uploading a HEIF file gave us RCE on the OpenAI forum community.openai.com.

github.com/strukturag/lib…
Image from the post
81666385
s1r1us

@S1r1u5_

The second bug is more serious: an OpenAI SSO vulnerability.

Using this flaw, we turned our Discourse forum exploit into access to ChatGPT and Codex accounts belonging to people who had signed into it, including OpenAI employees.
21358538
s1r1us

@S1r1u5_

Those accounts could be (and some were) connected to Outlook, Gmail, Google Drive, Slack, GitHub, and other services via Codex or ChatGPT. This made the potential impact much larger than ChatGPT alone.
21247428
s1r1us

@S1r1u5_

To demonstrate impact while minimising exposure, we used one affected employee account connected to OpenAI’s GitHub org.

Codex created a harmless PR in their internal monorepo without us reading sensitive code. That proved to us that the access was real.
Image from the post
31149424
s1r1us

@S1r1u5_

We reported the bug to Discourse and OpenAI. OpenAI fixed the SSO issue roughly 14 hours after our initial submission.

Discourse received our separate report Saturday, replied Sunday, and had a fix Monday.

OpenAI awarded us $6,500.
Image from the post
70441.1K129
s1r1us

@S1r1u5_

AI agents did a meaningful share of the exploit work.

Opus 4.8 found the libheif vulnerability and built a partial exploit. Hours after Opus 5 launched, it adapted the exploit to Discourse and achieved RCE on our test instance.
51357233
s1r1us

@S1r1u5_

Our main takeaway from hacking OpenAI: AI is reducing the amount of scarce expertise needed to develop exploits. Work that once took months can now take days.

Even leading AI labs can be vulnerable.

Defenders need to fix the architecture, patch faster, and limit the blast radius of connected things.
95574557
s1r1us

@S1r1u5_

This work was done by our team @HacktronAI led by @rootxharsh along with me and @iamnoooob.

We have published the full details of the exploit chain, as well as how we discovered it, on our blog here:

hacktron.ai/blog/hacking-o…

hacktron.ai

Hacking OpenAI

A heap overflow and SSO misconfiguration to compromise OpenAI internal repositories

1062696192
s1r1us

@S1r1u5_

also we are not some random dudes, check our work before, we work with companies like perplexity and vercel.

hacktron.ai/blog/

hacktron.ai

Blog | Hacktron AI

Hacktron autonomously reviews code, finds vulnerabilities, and writes exploits.

71454052
End of thread