Skip to content
AI / LLM Write-up Intermediate

Bing Chat: Data Exfiltration Exploit Explained

Bing Chat rendered markdown image syntax returned by the language model, so text on a webpage could cause the model to emit an image link to an attacker-controlled server with stolen data in the query string. An attacker could exfiltrate data from the chat session by embedding malicious instructions in content the model reads.

embracethered.com

Published on embracethered.com

This post describes how I found a Prompt Injection attack angle in Bing Chat that allowed malicious text on a webpage (like a user comment or an advertisement) to exfiltrate data.

The author, 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 client rendered markdown image syntax from model output without restricting where images could be loaded from, allowing data to be sent to arbitrary external servers.

Impact

An attacker could exfiltrate data from the chat session by placing malicious text on a webpage that the model reads, though the text does not state what data or how much.

What the attacker needed

Malicious text on a webpage; model reads the page

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.

Bing Chat is a chatbot that can read web pages. When it answers, it can include special formatting called markdown, which the app turns into HTML, the language of web pages. The researcher found that if a web page contains hidden instructions, the chatbot can be tricked into creating an image link that sends private information to a server the attacker controls.

What is AI / LLM?

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

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.