From ChatBot To SpyBot: ChatGPT Post Exploitation
The report describes how an attacker could bypass ChatGPT's URL validation to exfiltrate user data via markdown images, using stored prompt injection in custom instructions. An attacker could steal sensitive information like passwords or tokens by encoding it into static URLs that ChatGPT renders as images.
In the second installment of our blog post series on ChatGPT, we delve deeper into the security implications that come with the integration of AI into our daily routines. Building on the discoveries shared in our initial post, “XSS Marks the Spot: Digging Up Vulnerabilities in ChatGPT,” where we uncovered two…
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 URL validation endpoint only checks if the URL string appears anywhere in the conversation text, allowing attackers to craft URLs that encode sensitive data as substrings.
Impact
An attacker could exfiltrate sensitive user data such as passwords or tokens, and maintain persistent access via stored prompt injection, though extracting large volumes without detection is now harder.
What the attacker needed
Attacker can set custom instructions; victim interacts with ChatGPT; attacker controls a server
The fix
OpenAI mitigated the issue by restricting the browser tool and markdown image rendering to URLs previously present in the conversation, but the bypass shows the fix is incomplete.
How it was found
- Set custom instructions that tell ChatGPT to split sensitive data into characters and create markdown images for each character using static URLs.
- When a user shares sensitive information, ChatGPT generates markdown images with URLs that encode each character.
- The attacker observes the order of image requests to their server to reconstruct the data.
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.
This report is about a security weakness in ChatGPT. Attackers could trick ChatGPT into showing images that secretly send your private information to their server. They did this by putting special instructions in the 'Custom Instructions' feature, which ChatGPT follows even after you log out.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.