Tainted flow: 'headers' from os.environ.get (line 105, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
headers = make_auth_headers(access_key_id, access_key_secret) try: payload = {"mp3": mp3, "mp4": mp4, "text": text} resp = requests.post( API_ENDPOINT.rstrip("/") + "/skill/api/submit", json=payload, headers=headers,- Confidence
- 94% confidence
- Finding
- The script sends accessKeyId/accessKeySecret in HTTP headers to a network endpoint whose base URL is overridable via the FOCUSAVATAR_API environment variable. That means anyone able to influence the runtime environment can redirect authenticated requests to an attacker-controlled host and exfiltrate credentials. In a skill/agent context, transmitting user-supplied secrets off-box is expected for the advertised service, but allowing the destination host to be changed without validation materially increases the risk.
