Tainted flow: 'url' from os.environ.get (line 36, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
url = f"{BASE_URL}/skill/entData/combinedQuery" headers = {'access_key': ACCESS_KEY} try: response = requests.get(url, headers=headers, params=filtered, verify=True, timeout=30) return response.json() except requests.exceptions.Timeout: return {'code': -1, 'msg': '请求超时'}- Confidence
- 84% confidence
- Finding
- The request URL is derived from the environment variable QIBOOK_BASE_URL and then used directly in requests.get while sending the access_key header. If an attacker can influence the runtime environment, they can redirect requests to an attacker-controlled host and capture the API credential or query sensitive enterprise/person lookup data. In an agent skill context, this is more dangerous because the code is specifically designed to transmit both authentication material and user-supplied business identity data to a remote service.
