Tainted flow: 'request' from os.environ.get (line 415, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
request = urllib.request.Request(url=url, data=data, headers=headers, method=method.upper()) try: with urllib.request.urlopen(request, timeout=self.timeout) as response: raw = response.read().decode("utf-8") if accept == "text/event-stream": return raw- Confidence
- 89% confidence
- Finding
- The CLI allows ANTHROPIC_API_BASE_URL to be overridden from the environment and then sends authenticated requests with the x-api-key header to that URL. If an attacker can influence the process environment, they can redirect traffic to an attacker-controlled endpoint and capture the API key and request data; this is especially sensitive because this skill is explicitly designed to manage agents, sessions, files, and other high-value resources.
