Tainted flow: 'url' from os.getenv (line 271, 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
- 83% confidence
- Finding
- The request destination is derived from JF_ENDPOINT, which is read from the environment and interpolated directly into the base URL. If an attacker can influence environment variables, they can redirect authenticated PTZ requests and signed headers to an attacker-controlled host, enabling SSRF-like behavior and credential/signature exposure. In this skill context, the transmitted data is especially sensitive because it includes device control operations and authentication material.
