Tainted flow: 'req' from os.environ.get (line 199, 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.add_header(key, value) try: with urllib.request.urlopen(req, timeout=TIMEOUT) as response: payload = response.read() # 服务端每个响应都回本次实扣和扣完后的余额。记下来,供 _spent/_balance 输出。 # 拿服务端的真值,而不是在本地累加估价:跨进程累加迟早算岔,
