PortSwigger — Exploiting AI Agents to Trigger Secondary Vulnera
The application's stock-check feature accepted an attacker-controlled URL, enabling server-side request forgery to reach an internal admin interface that only trusts loopback connections. An AI-powered scanner that read blog comments could be tricked via indirect prompt injection into issuing a delete request to that admin interface from its trusted network position.
Modern application security teams are increasingly deploying AI-powered scanners: tools that combine traditional crawling and request generation with LLM-driven reasoning. Unlike classic DAST scanners, which follow rigid, signature-based logic, an AI-powered scanner can read a page semantically, reason about what to…
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 stock-check feature built a backend request from an unvalidated user-supplied URL, and the AI scanner treated crawled user content as instructions rather than data, while the admin interface relied solely on a loopback check for authorisation.
Impact
An attacker could use the scanner's trusted network position to perform an admin action (deleting a user) that the attacker could not perform directly, though the scanner's non-deterministic behaviour means the injection may need several attempts.
What the attacker needed
A free account; victim clicks a link; none
The fix
The text recommends allow-listing outbound URLs, requiring explicit authentication and authorisation on every admin request regardless of network origin, applying least privilege to scanner credentials, treating user content as data only, segmenting the network, and logging scanner actions.
How it was found
- Log in with the low-privilege account and intercept the Check Stock request.
- Replace the Host header with a Burp Collaborator domain and confirm an interaction.
- Use Burp Intruder to sweep the internal range on port 8080 via the Host header.
- Identify the host returning 404 instead of 504 and confirm it via the stockApi parameter.
- Post a blog comment containing an instruction for the scanner to send a POST to the admin delete endpoint.
- Trigger the AI-powered scan and observe the scanner issue the delete request.
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 stock-check feature let a user supply a web address that the server would then fetch, so an attacker could make the server visit internal machines. One internal machine was an admin panel that only accepted connections from the same computer, blocking the attacker's direct request. A separate AI scanner read blog comments and could be told, in plain text, to send a delete request to that admin panel from a location the panel trusted.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.