Tainted flow: 'url' from os.getenv (line 56, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
] } response = requests.post(url, headers=headers, json=body, timeout=30) result = response.json() if result.get("code") != 2000:- Confidence
- 96% confidence
- Finding
- The request URL is derived from JF_ENDPOINT, which is taken directly from an environment variable and then used to send authenticated requests containing uuid, appKey, signature, and device control commands. If an attacker can influence the environment, they can redirect traffic to an attacker-controlled host and capture request metadata or induce unauthorized device-control attempts, making this more serious than a generic outbound request.
