OpenHands and the Lethal Trifecta: How Prompt Injection Can Leak Access Tokens
The OpenHands AI agent renders images inside its chat interface, and this rendering can be abused to exfiltrate data such as access tokens without any user interaction. An attacker who can get malicious content in front of the agent could therefore leak sensitive data through image requests.
embracethered.com
Published on embracethered.com
Another day, another AI data exfiltration exploit. Today we talk about OpenHands, formerly referred to as OpenDevin.
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 agent automatically fetches and renders images referenced in model output, so attacker-influenced content can trigger outbound requests carrying sensitive data.
What the attacker needed
Attacker-controlled content reaches the agent; agent can render images
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.
An AI coding assistant shows pictures inside its chat window. Because it automatically loads those pictures from the internet, someone who can plant instructions in the chat can make the assistant send secret data out hidden in a picture link. The victim does not have to click anything for this to happen.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.