Tainted flow: 'url' from os.getenv (line 94, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
} try: resp = requests.post(url, headers=headers, json=payload, timeout=300) except Exception as e: print(f"请求失败: {e}") sys.exit(1)- Confidence
- 94% confidence
- Finding
- The request URL is derived from the environment variable SUDOCODE_BASE_URL and is used directly in requests.post while also attaching the API key header and user-supplied prompt/image content. If an attacker can influence the environment, they can redirect requests to an arbitrary host and exfiltrate credentials and sensitive image/prompt data; in a skill context this is more dangerous because the script is explicitly designed to transmit user content to a remote service.
