T09 · Insecure Skill Coding Practices
- Location
scripts/extract.mjs:39- Finding
Unrestricted URL Fetching Enables Server-Side Request Forgery
- Content
View full analysis
/`, a private network service, or `http://169.254.169.254/`. 2. `extract.mjs` passes the URL directly to `fetch()`. 3. The request is sent from the Agent host and may reach services unavailable to the attacker. 4. If the endpoint responds successfully, the response is read, processed by `stripHtml()`, and printed. 5. The attacker can use returned content or HTTP status differences to inspect internal resources and probe reachable services. A public URL that redirects to an internal destination can provide an equivalent exploitation path because redirect targets are not revali ...[truncated 745 chars]- Remediation
View remediation
