Tainted flow: 'url' from os.environ.get (line 18, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
headers = {} if API_TOKEN: headers["Authorization"] = f"Bearer {API_TOKEN}" return requests.get(url, headers=headers, timeout=timeout) class Monitor:- Confidence
- 89% confidence
- Finding
- The request URL is built from an environment-controlled API base and then fetched directly, which creates an SSRF-style outbound request primitive if that environment variable is misconfigured or attacker-controlled. Because the same helper also attaches the bearer token, a hostile endpoint could receive authentication material or probe internal network locations through the monitor.
