Tainted flow: 'url' from os.environ.get (line 204, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = f"{API_BASE_URL}{API_PATH}?{params}" try: with urllib.request.urlopen(url, timeout=15) as response: payload = json.loads(response.read().decode("utf-8")) except urllib.error.HTTPError as exc: return {"success": False, "mobile": mobile, "error": f"接口请求失败: HTTP {exc.code}"}- Confidence
- 95% confidence
- Finding
- with urllib.request.urlopen(url, timeout=15) as response:
