Tainted flow: 'url' from os.environ.get (line 60, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
try: debug_print(f"调用聚合接口: {url}, 企业: {entname}") response = requests.get(url, headers=headers, params=params, timeout=timeout) result = response.json() if result.get('code') == 200:- Confidence
- 92% confidence
- Finding
- The request URL is built from QIBOOK_BASE_URL taken directly from the environment and then used in requests.get while sending the access_key header. If an attacker or unsafe deployment can influence that environment variable, the skill can be redirected to an attacker-controlled host, causing credential leakage and SSRF-style outbound requests. In this skill context, the risk is higher because the request includes both sensitive enterprise query data and an API credential.
