Tainted flow: 'req' from os.environ.get (line 110, credential/environment) → urllib.request.build_opener.open (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 req = urllib.request.Request(url, headers={"User-Agent": f"fcskill/{__version__}", "Accept": "*/*"}) opener = urllib.request.build_opener(_SameHostRedirect) try: with opener.open(req, timeout=60) as resp: # noqa: S310 - allow-listed https URLs only data = resp.read(limit + 1) except urllib.error.HTTPError as e: hint = (
