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
- 92% confidence
- Finding
- The code allows the request destination to be derived from TOKENAPI_BASE_URL without validation, then sends authenticated POST requests with the Bearer API key and payload to that URL. If an attacker can influence the environment or configuration, they can redirect traffic to an attacker-controlled host, causing credential exfiltration and disclosure of user payloads; the fallback logic broadens the set of transmitted data.
