I Tricked an AI Into Deleting a User Account (No Direct Access Needed)
The chatbot trusted product reviews as instructions, so an attacker could inject a hidden command into a review. By changing their own username and email to match the victim's, the attacker caused the chatbot to delete the victim's account.
infosecwriteups.com
Published on infosecwriteups.com
Modern applications are increasingly integrating Large Language Models (LLMs) with backend APIs. While powerful, this creates a new attack surface — where user-controlled content can influence AI behavior.
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 chatbot did not separate trusted instructions from untrusted data, so it executed commands embedded in product reviews.
Impact
The attacker could delete another user's account, and the text also claims privilege escalation and data loss are possible.
What the attacker needed
A free account; ability to post product reviews; chatbot with delete_account API access
The fix
The chatbot should not directly call sensitive APIs, should isolate user content from system prompts, and should require explicit confirmation before critical actions.
How it was found
- Register with a random username and ask the chatbot what API access it has.
- Test that the chatbot can change your own email.
- Inject a malicious review into a leather jacket product.
- Change your username and email to Carlos.
- Ask the chatbot about the leather jacket to trigger the hidden command.
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.
A chatbot was given the power to delete accounts. It read product reviews and treated any text in them as a command from the user. An attacker wrote a fake command in a review, then pretended to be the victim, so the chatbot deleted the victim's account.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.