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 code allows the request destination to be controlled by TOKENAPI_BASE_URL from the environment and then sends authenticated POST requests with the Bearer token and payload to that URL. If an attacker can influence environment variables or packaging defaults, this becomes an SSRF/exfiltration path that can leak API credentials and user data to an attacker-controlled endpoint.
