Tainted flow: 'BASE_URL' from os.getenv (line 8, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
if end_date: params["end_date"] = end_date resp = requests.get(f"{BASE_URL}/articles", headers=HEADERS, params=params, timeout=30) resp.raise_for_status() return resp.json()- Confidence
- 92% confidence
- Finding
- The request target is derived from an environment variable and used directly in an outbound HTTP call, which can redirect the script to an attacker-controlled host if the environment is manipulated. Because the script also sends a fixed Authorization header and query data, this can enable SSRF-like behavior, token leakage, and unexpected access to internal or malicious services; the default use of plain HTTP further weakens transport security.
