Tainted flow: 'request' from os.environ.get (line 1155, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 94% confidence
- Finding
Sending the configured provider credential as a Bearer token is necessary for this skill and is not itself exfiltration. However, the default urllib redirect handler can forward Authorization headers to a different host, including through an HTTPS-to-HTTP redirect; a malicious or compromised endpoint could therefore expose the provider credential despite the initial HTTPS validation.
- Content
python if body is not None: request.add_header("Content-Type", "application/json") try: with urllib.request.urlopen(request, timeout=180) as response: # noqa: S310 # HTTPS enforced by _base_url raw = response.read(MAX_JSON_RESPONSE + 1) headers = dict(response.headers.items()) except urllib.error.HTTPError as exc:
