Tainted flow: 'API_BASE' from os.environ.get (line 28, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
start = time.time() try: resp = requests.post( API_BASE, headers={ "Authorization": f"Bearer {API_KEY}",- Confidence
- 94% confidence
- Finding
- The request destination is taken from the LLM_API_BASE environment variable and used directly in requests.post while the Authorization header includes the DASHSCOPE_API_KEY bearer token. If an attacker can influence the environment, they can redirect traffic to an arbitrary server and capture both the API key and all benchmarked sample/prompt data, turning this into credential exfiltration and data leakage.
