Tainted flow: 'API_BASE' from os.environ.get (line 23, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
"User-Agent": "OpenClaw-Skill/1.0" } try: resp = requests.get( f"{API_BASE}{endpoint}", headers=headers, params=params or {},- Confidence
- 96% confidence
- Finding
- The request target is derived from the environment-controlled API_BASE and the script unconditionally sends the X-Token header to that destination. This creates an SSRF/exfiltration path where anyone who can influence YUFENG_QUANT_API can redirect authenticated requests, steal the token, or force connections to unexpected internal or external services.
