Tainted flow: 'req' from os.environ.get (line 97, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python for attempt in range(MAX_RETRIES): try: req = Request(url, headers={"User-Agent": "huawei-cloud-find-skills/1.0"}) with urlopen(req, timeout=HTTP_TIMEOUT) as resp: raw = resp.read().decode("utf-8") parsed = json.loads(raw) if is_api and isinstance(parsed, dict) and parsed.get("encoding") == "base64" and "content" in parsed:
