Tainted flow: 'url' from os.getenv (line 164, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
if access_token: body["accessToken"] = access_token response = requests.post(url, headers=headers, json=body, timeout=30) result = response.json() if result.get("code") != 2000:- Confidence
- 93% confidence
- Finding
- The request destination is derived from the JF_ENDPOINT environment variable and then used to construct HTTPS URLs for API calls. An attacker who can influence the environment can redirect requests carrying authentication headers, signatures, device identifiers, and possibly access tokens to an attacker-controlled host, enabling credential exfiltration and unauthorized device operations.
