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
- 94% confidence
- Finding
- The request target is taken from an environment-controlled endpoint and the code always attaches an authentication cookie containing the access token. If the endpoint is misconfigured or maliciously overridden, the token and potentially sensitive query payloads will be sent to an attacker-controlled server, creating a clear SSRF-style exfiltration path. In this analytics skill context, outbound access to a metrics backend is expected, but unrestricted endpoint override makes it more dangerous because the same code also carries authentication material.
