T09 · Insecure Skill Coding Practices
- Location
scripts/freedom_engine.py:21- Finding
Unrestricted User-Controlled URL Fetching Enables Server-Side Request Forgery
- Content
View full analysis
1 else "https://example.com" engine = FreedomEngine() print(json.dumps(engine.quick_fetch(target), indent=2, ensure_ascii=False)) ``` ### Technical Analysis The command-line argument is passed directly to two network clients without validating the URL scheme, destination hostname, resolved IP address, port, or redirect chain. No control prevents requests to loopback, link-local, private, or otherwise reserved networks. The fallback does not provide a security boundary: if Scrapling fails, `curl_cffi` repeats the request to the same untrusted destination. Successful responses expose up to 2,000 characters through the process output. The declared web-retrieval functionality requires outbound access to user-selected public websites, but it does not require access to int ...[truncated 1268 chars]- Remediation
View remediation
