Tainted flow: 'endpoint' from os.getenv (line 70, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
endpoint = f"{ENDPOINT}{path}" headers = _headers(authorization) # print(payload) submit_resp = requests.post(endpoint, json=payload, headers=headers, timeout=30) if submit_resp.status_code != 200: raise RuntimeError(f"http error: {submit_resp.status_code} {submit_resp.text}") resp_json = submit_resp.json()- Confidence
- 95% confidence
- Finding
- submit_resp = requests.post(endpoint, json=payload, headers=headers, timeout=30)
