Tainted flow: 'params' from os.environ.get (line 36, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
def get_access_token(): """获取 access_token""" params = {"grant_type": "client_credential", "appid": APP_ID, "secret": APP_SECRET} resp = requests.get(TOKEN_URL, params=params, timeout=15) data = resp.json() if "access_token" not in data: raise RuntimeError(f"获取 token 失败: {data}")- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
