Tainted flow: 'app_key' from os.environ.get (line 14, 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 def get_access_token(): app_key, app_secret = get_credentials() print("正在获取 access_token...", file=sys.stderr) resp = requests.post(f"{OPEN_API_BASE}/oauth2/accessToken", json={ "appKey": app_key, "appSecret": app_secret, })
