Tainted flow: 'url' from os.getenv (line 71, credential/environment) → requests.post (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python url = f"{JF_BASE_URL}/rtc/device/token" headers = get_headers(uuid, app_key, app_secret, move_card) body = {"sns": device_sns, "accessToken": ""} response = requests.post(url, headers=headers, json=body, timeout=30) result = response.json() if result.get("code") != 2000: raise RuntimeError(f"获取设备 Token 失败:{result.get('msg', '未知错误')}")
