Google AI Studio: LLM-Powered Data Exfiltration Hits Again! Quickly Fixed.
Google AI Studio rendered HTML image tags generated by the LLM, allowing data exfiltration via prompt injection to an external server.
Published on embracethered.com
Recently, I found what appeared to be a regression or bypass that again allowed data exfiltration via image rendering during prompt injection. See the previous post here for reference.
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 application rendered HTML image tags generated by the LLM without a Content Security Policy, allowing requests to arbitrary domains.
Impact
An attacker could exfiltrate data without the user's knowledge by having the LLM generate image tags that send data to an external server.
What the attacker needed
Prompt injection content is processed; LLM generates an HTML image tag; image is rendered
How it was found
- Provide content containing a malicious prompt injection.
- The LLM analyzes the documents and follows the injected instructions.
- The LLM generates HTML image tags that send data to an attacker-controlled server.
- The image tags are rendered, exfiltrating 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.
If content contains hidden instructions, the AI might follow them and send private information to an attacker by loading an image from the attacker's server.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.