Tainted flow: 'req' from os.environ.get (line 26, credential/environment) → urllib.request.urlopen (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 req = urllib.request.Request(url, data=json.dumps(payload).encode('utf-8'), headers=headers, method='POST') try: with urllib.request.urlopen(req) as response: result = json.loads(response.read().decode('utf-8')) # 打印详细的返回结构,看看是不是有 inline_data 和 mime_type
