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.
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
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
- Craft a path for the session endpoint that ends with .css.
- Distribute the link to a victim or publicly.
- Victim visits the link.
- The response is cached.
- 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.