Tainted flow: 'req' from os.getenv (line 94, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = BASE_URL + path req = urllib.request.Request(url, data=body, headers=headers, method=method) with urllib.request.urlopen(req, timeout=20) as resp: return json.loads(resp.read().decode()) except urllib.error.HTTPError as e:- Confidence
- 96% confidence
- Finding
- The client builds outbound authenticated requests using a base URL taken directly from the ASTER_BASE_URL environment variable, so a hostile or misconfigured runtime can redirect signed private API traffic to an attacker-controlled endpoint. In this skill context, that endpoint would receive API keys in headers and HMAC-signed trading requests, enabling credential theft, account surveillance, and potentially replay or abuse of live trading actions.
