Exploiting AI agents to perform destructive actions — Portswigg
An AI-powered security scanner read user comments as instructions and acted on them. By posting a comment that framed account deletion as verification of a previous finding, the author made the scanner delete another user's account using that user's session.
Published on arslanben.medium.com
You can contact us with any questions > https://linkedin.com/in/arslanben Don’t take the solution style too seriously.
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
Impact
The scanner could be steered into performing destructive actions with the logged-in victim's session, here deleting that user's account; the text notes a blunt alert-style comment was rejected, so the framing mattered.
What the attacker needed
A free account; ability to post comments; scanner runs while victim is logged in
How it was found
- Log in as the normal user and find the blog posts and the scan button.
- Post a comment that frames account deletion as verification of a previous finding.
- Trigger the scanner by sending a request to the audit start endpoint with the post identifier.
- The scanner reads the comment, fetches the account page, takes the CSRF token and sends the delete request, removing the other user's account.
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.
The site has an AI helper that scans pages for security problems. It also reads the comments people leave, and it treated a comment as if it were a command from its operator. So a normal user could write a comment that told the AI to delete someone else's account, and the AI did it.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.