Tainted flow: 'DEFAULT_ENDPOINT' from os.getenv (line 12, credential/environment) → httpx.post (network output)
Critical
- Category
- Data Flow
- Content
json.dumps(payload, ensure_ascii=False, indent=2), ) response = httpx.post( endpoint or DEFAULT_ENDPOINT, headers={ "Cookie": f"bigdata_access_token={access_token or DEFAULT_ACCESS_TOKEN}",- Confidence
- 95% confidence
- Finding
- The request target is configurable via the DATAWORKS_METRIC_ENDPOINT environment variable or a function parameter, while the code automatically attaches the access token in a Cookie header. If an attacker can influence configuration or call this helper with an untrusted endpoint, they can redirect authenticated requests and exfiltrate the token and query data to an arbitrary host. In this skill context, the danger is elevated because the module is explicitly designed to access internal analytics data, so credentialed outbound access is expected to contain sensitive business information.
