Skip to content
Cache bugs Write-up Intermediate

Shockwave Identifies Web Cache Deception and Account Takeover Vulnerability affecting OpenAI's ChatGPT

The ChatGPT session endpoint returned sensitive JSON (including an access token) even when a .css extension was appended to the path, and Cloudflare cached that response. An attacker could trick a victim into visiting the crafted link, then retrieve the cached response to take over the account.

Gal Nagli Follow

Published on shockwave.cloud

Our founder has worked together with OpenAI's team to fix Account Takeover vulnerability that affected ChatGPT via Web Cache Deception, what seems to be the world's first Web Based Vulnerabilities affecting the most innovative product of many generations, read more on the detailed twitter thread

Gal Nagli (@naglinagli), on shockwave.cloud

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server returned the same sensitive JSON for paths with extra segments and a static file extension, and the cache was configured to cache based on file extension, so the response was stored and served to others.

What the attacker needed

Victim visits a crafted link; cache must store the response

How it was found

  1. Craft a path for the session endpoint that ends with .css.
  2. Distribute the link to a victim or publicly.
  3. Victim visits the link.
  4. The response is cached.
  5. Attacker retrieves the cached response to obtain the JWT.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web cache stores copies of responses to serve them faster. If a sensitive response is stored under a URL that others can guess, an attacker can fetch that stored copy. Here, adding a .css extension made the cache store the victim's session data, letting the attacker read it.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More by Gal Nagli

View all

5 more disclosed reports, best first.

More from OpenAI (ChatGPT)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.