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 destination base URL to come from an environment variable and then uses it directly in requests.post with an Authorization bearer token. If TOKENAPI_BASE_URL is attacker-controlled, the client can be redirected to an arbitrary host, causing credential exfiltration and unintended transmission of payload data to untrusted infrastructure.
