Server-side request to a request-controlled URL (Python)
Part of Security, which counts for 30% of the overall score. When this check fires it deducts 8 points from that category, once per scan, no matter how many places it turns up.
What it detects
requests/httpx/urlopen is called with a URL taken from request.args/form/GET. Heuristic: the destination host may be attacker-controlled (SSRF).
Why it matters
A requests, httpx, or urlopen call built from request.args or request.form lets a caller choose the destination, which can be an internal service or the cloud metadata endpoint (server-side request forgery). This is a heuristic match; exploitability depends on how the host is validated. Use it as a prompt to review the call rather than a definitive finding.
How to fix it
Avoid caller-controlled hosts. Map a request key to a fixed base URL on the server when only a few destinations are valid. For open URL fetching, validate the host against an allowlist, resolve it and block private, loopback, and link-local ranges, set a timeout, and disable redirects (allow_redirects=False). Do not forward credentials to untrusted hosts.
The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing
Does your repo trip this check?
Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.
Scan your repo