Tainted flow: 'req' from os.getenv (line 296, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
ssl_ctx.verify_mode = ssl.CERT_NONE try: with urllib.request.urlopen(req, context=ssl_ctx, timeout=30) as resp: result = json.loads(resp.read().decode("utf-8")) except urllib.error.HTTPError as e: raise Exception(f"HTTP请求失败: {e.code}, {e.read().decode('utf-8', errors='replace')}")- Confidence
- 99% confidence
- Finding
- The script sends an API key from the environment in an outbound HTTPS request while explicitly disabling TLS certificate validation. This creates a real interception risk: a machine-in-the-middle could impersonate the remote endpoint, capture the credential, and tamper with returned account data.
