From Chicken McNuggets to a Bug Bounty: How a Viral Meme Started
A private bug bounty program's AI support chatbot was found to evaluate user-supplied input as server-side template syntax, allowing an attacker to trigger outbound requests from the backend. This chained into SSRF-style impact, and the same flaw was later found in another program using the same chatbot framework.
Published on medium.com
And like most people who’ve been at it long enough, I’ve collected my fair share of:
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 backend passed user-controlled chat input into a template engine without sanitisation, causing server-side template injection.
Impact
An attacker could use the chatbot to make the backend evaluate attacker-controlled input and send outbound requests, potentially reaching internal systems; the issue was rated high severity and paid $2,000.
What the attacker needed
Access to the AI chatbot; private bug bounty program
How it was found
- Send direct prompts asking for code or general knowledge; the bot refuses.
- Send inputs with special characters and paths; observe unusual responses.
- Reframe requests as a technical interview to bypass guardrails.
- Submit a JavaScript constructor-style payload with a webhook URL; receive a callback with a Ruby user-agent.
- Test a basic arithmetic expression; the chatbot returns the evaluated result, confirming SSTI.
- Test whether the backend can be forced to make internal requests; it can, confirming SSRF-style impact.
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 is a program that talks to users, but behind it there is a server that processes messages. Here, that server treated the user's message as a template to be filled in, so the message could make the server run code and send requests to other systems. This is dangerous because an attacker can use the chatbot to reach internal services.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.