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
- 91% confidence
- Finding
- The client accepts the base URL from an environment variable and uses it to construct the destination for authenticated POST requests. Because the Authorization bearer token and request payload are sent to whatever host is configured, a malicious or compromised environment can redirect traffic to an attacker-controlled endpoint, causing credential exfiltration and unintended data disclosure; the default HTTP localhost fallback also weakens transport security.
