Tainted flow: 'INGEST_URL' from os.environ.get (line 43, credential/environment) → requests.post (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
MRKJAI_API_BASE determines where the script sends both telemetry and the X-API-Key credential, without validating the destination or requiring HTTPS. An attacker who can influence this configuration could redirect uploads to a credential-collection endpoint, while an HTTP configuration would expose the credential in transit. Endpoint customization fits the advertised enterprise integration use case, so this is a conditional configuration-security weakness rather than evidence of deliberate exfiltration or a critical vulnerability.
- Content
python "Content-Type": "application/json", } try: resp = requests.post(INGEST_URL, json=event, headers=headers, timeout=10) resp.raise_for_status() return resp.json() except requests.exceptions.RequestException as e:
