Tainted flow: 'API_HOST' from os.environ.get (line 5, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
headers = {} if user_id: headers["X-User-Id"] = user_id resp = requests.get("{}/analyze/{}".format(API_HOST, ccy.upper()), headers=headers, timeout=120) return resp.json()- Confidence
- 92% confidence
- Finding
- The remote endpoint is taken directly from an environment variable and used for outbound requests without validation, allowing redirection to an arbitrary host if the runtime environment is influenced. In this skill, that also means the tool may send user identifiers and query data to an attacker-controlled server over plain HTTP, enabling data exfiltration and man-in-the-middle tampering.
