Skip to content
AI / LLM Write-up Intermediate

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.

Johann Rehberger Follow

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.

Johann Rehberger (wunderwuzzi23), on embracethered.com

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

  1. Provide content containing a malicious prompt injection.
  2. The LLM analyzes the documents and follows the injected instructions.
  3. The LLM generates HTML image tags that send data to an attacker-controlled server.
  4. 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.

More by Johann Rehberger

View all

8 more disclosed reports, best first.

More from Google (AI Studio)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.