Tainted flow: 'OW_API' from os.environ.get (line 33, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
def search_requests(): """搜索求购信息""" try: with urllib.request.urlopen(OW_API, timeout=30) as response: data = json.loads(response.read().decode('utf-8')) if data.get('success'): return data.get('posts', [])- Confidence
- 96% confidence
- Finding
- The request URL is derived from an environment variable and passed directly to urllib.request.urlopen without validation or allowlisting. In an agent or automation environment, a malicious or compromised configuration can redirect requests to arbitrary internal or external endpoints, enabling SSRF-like behavior, unintended data exfiltration, or retrieval of attacker-controlled content that influences downstream matching and notification logic.
