Tainted flow: 'HEADERS' from os.environ.get (line 41, 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 payload = {"url": video_url, "source": "视频号视频下载-GitHub"} try: resp = requests.post(API_URL, headers=HEADERS, json=payload, timeout=REQUEST_TIMEOUT) except requests.exceptions.Timeout: return {"success": False, "reason": "请求超时,请稍后重试"} except requests.exceptions.ConnectionError:
