Tainted flow: 'proxies' from os.environ.get (line 88, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
if proxy_url: proxies = {'https': proxy_url, 'http': proxy_url} response = requests.post(url, headers=headers, params=params, json=data, timeout=30, proxies=proxies) response.raise_for_status() result = response.json()- Confidence
- 91% confidence
- Finding
- The Gemini path reads HTTPS_PROXY/https_proxy from the environment and forwards AI request traffic through that proxy. In an agent or hosted runtime, environment variables can be controlled by deployment context, so prompts, stock data, and the API key in the query string may be exposed to an attacker-controlled intermediary, creating an SSRF/exfiltration channel.
