Tainted flow: 'url' from os.getenv (line 53, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
"region": region } response = requests.post(url, headers=headers, json=body, timeout=30) result = response.json() if result.get("code") != 2000:- Confidence
- 95% confidence
- Finding
- The request target is derived from the JF_ENDPOINT environment variable and used to construct the POST URL, while signed authentication headers and device tokens are sent in the same request. If an attacker can influence the environment, they can redirect traffic to an attacker-controlled host and capture sensitive credentials, signatures, and device identifiers despite HTTPS.
