Tainted flow: 'req' from os.environ.get (line 113, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
ssl_context.verify_mode = ssl.CERT_REQUIRED try: with urllib.request.urlopen(req, timeout=timeout, context=ssl_context) as resp: raw = resp.read() response_data = json.loads(raw) if raw else {} payment_headers = extract_payment_headers(resp.headers)- Confidence
- 91% confidence
- Finding
- The request target is derived from BOTSEE_BASE_URL, an environment variable, and is used directly for outbound authenticated requests. In agent or CI environments, environment variables are often attacker-influenced; this can redirect Authorization-bearing traffic and other sensitive payloads to an attacker-controlled host despite valid TLS, causing credential exfiltration and unintended remote actions.
