Tainted flow: 'url' from os.getenv (line 271, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
} if body is not None: kwargs["json"] = body return requests.post(url, **kwargs) def _raise_for_status(resp: requests.Response) -> None:- Confidence
- 95% confidence
- Finding
- The code allows the request destination to be derived from TOKENAPI_BASE_URL, ultimately reaching requests.post without validation. If an attacker can influence environment variables or call this API with a crafted base_url, they can redirect authenticated requests and skill payloads to an arbitrary host, causing SSRF-style behavior and exfiltration of the Bearer token and submitted data.
