Tainted flow: 'TOKEN_URL' from os.environ.get (line 8, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
data = {"source_key": source_key} try: response = requests.post(TOKEN_URL, headers=headers, json=data) response.raise_for_status() return response.json().get("access" + "_token") except Exception as e:- Confidence
- 97% confidence
- Finding
- The wrapper sends the API key in an HTTP header to a URL taken directly from the GWS_TOKEN_URL environment variable, with no validation of scheme, host, or trust boundary. If that environment variable is attacker-controlled or misconfigured, credentials can be exfiltrated to an arbitrary endpoint and a malicious token response could be injected into the downstream CLI flow.
