Tainted flow: 'API_BASE' from os.getenv (line 76, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
headers = {"Content-Type": "application/json"} if key: headers["X-Agent-Key"] = key resp = requests.post(f"{API_BASE}{path}", json=body, headers=headers, timeout=timeout) if resp.status_code == 429 and _retry: retry_after = int(resp.headers.get("Retry-After", "5")) print(f"[429] Rate limited — backing off {retry_after}s")- Confidence
- 86% confidence
- Finding
- resp = requests.post(f"{API_BASE}{path}", json=body, headers=headers, timeout=timeout)
