Tainted flow: 'url' from os.environ.get (line 700, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
def _post_auth_json(base_url: str, path: str, payload: dict[str, Any]) -> dict[str, Any]: url = f"{base_url.rstrip('/')}{path}" response = requests.post( url, json=payload, headers=_auth_headers(),- Confidence
- 97% confidence
- Finding
- The request target is derived from `base_url`, which can be overridden by user input or environment-derived state, and the code sends credential-related material to that URL. Because TLS certificate verification is disabled, an attacker controlling DNS/network traffic or a malicious override can redirect or intercept API-key and key-exchange traffic, turning this into credential exfiltration or SSRF-like outbound access.
