Skip to content
AI / LLM Write-up Intermediate

This AI bug cost me a top 5 Spot at DEFCON 33 Bug Bounty Village

A chatbot's guardrails filtered only the current message, not the conversation history, so a path traversal payload blocked in one message could be executed when the next message asked the bot to reuse the previous one. This let the attacker read a flag file outside the intended directory.

drop Follow

Published on blog.paniago.io

I missed an AI bug that ended up costing me a place in the top 5 at the DEFCON 33 Bug Bounty Village CTF.

drop, on blog.paniago.io

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 guardrail inspected only the current user message and not the stored conversation history that the model also receives.

Impact

An attacker could bypass the chatbot's guardrails and read a file outside the permitted directory, capturing the challenge flag.

What the attacker needed

Admin access to the internal app; access to the help-section chatbot; multi-turn conversation with the bot

How it was found

  1. Gain admin access to the internal app by exploiting another bug.
  2. Enumerate the chatbot's tools, including file listing and file reading.
  3. List files in the parent folder and spot the flag file.
  4. Send a message with a path traversal payload asking to read the flag, which is blocked.
  5. Send a follow-up message asking the bot to use the previous message as additional input.
  6. The bot executes the earlier payload from memory and reads the flag.

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 chatbot keeps a memory of earlier messages so it can follow a conversation. Here the safety filter only checked the newest message, so a harmful instruction hidden in an older message could still be carried out later. The attacker sent a blocked request, then asked the bot to reuse that earlier message, and the bot obeyed.

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.