Tainted flow: 'url' from os.getenv (line 25, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
return _sts_cache url = LEEWOW_API_BASE + STS_ENDPOINT resp = requests.get(url, timeout=15) resp.raise_for_status() data = resp.json() if not data.get("tmpSecretId"):- Confidence
- 89% confidence
- Finding
- The STS credential endpoint is derived from an environment variable and then queried directly, which allows a deployment-time attacker or misconfiguration to redirect the request to an arbitrary host. Because the response supplies temporary COS credentials, a malicious endpoint could feed attacker-controlled credentials or capture request metadata, enabling SSRF-style abuse, exfiltration, or upload redirection to attacker-controlled storage.
