Otto Support - The Confused Deputy
The otto-support CTF challenge demonstrates a confused deputy attack where an AI agent reads attacker-controlled content, such as a poisoned support ticket, and follows hidden instructions using its own privileges. An attacker could use this to escalate privileges and compromise other customer accounts.
bishopfox.com
Published on bishopfox.com
In the previous blog on our otto-support CTF challenge, we talked about SSRF and token passthrough vulnerabilities. Our next topic focuses on the confused deputy.
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 does not reliably separate untrusted data from instructions, and it has broad privileges that let it act on attacker-supplied content.
Impact
An attacker could poison other users' tickets and escalate privileges to a support-agent role, potentially compromising other customer accounts; the text does not state whether any defence blocked this.
What the attacker needed
A free account on the challenge; ability to write to other users' tickets; access to the signer metadata service
The fix
Mitigations should be layered: separate data from instructions in prompts, give each agent only the tools it needs with least privilege, and restrict network egress to approved destinations.
How it was found
- Create a new user account and perform reconnaissance.
- Identify four local services and the ticket ID range used for support tickets.
- Notice that the account has write access to other users' tickets, not just its own.
- Use IDOR to append notes to other customers' tickets without directly stating intent.
- Identify a metadata service for the signer service that exposes sensitive keys.
- Use the keys to escalate privileges into a support-agent role and compromise other accounts.
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 agent is a program that can read messages and take actions, like sending emails or looking up data. A confused deputy attack happens when someone tricks that agent into misusing its own permissions by hiding instructions in content the agent reads, such as a support ticket. The agent thinks it is helping its owner, but it is actually doing what the attacker wants.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.