Tainted flow: 'req' from os.environ.get (line 39, 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 """Open our own tab rather than driving one the user is working in.""" try: req = Request(f"{CDP_URL}/json/new?about:blank", method="PUT") tab = json.loads(urlopen(req, timeout=10).read()) except Exception: tab = json.loads(urlopen(f"{CDP_URL}/json/new?about:blank", timeout=10).read()) return tab["webSocketDebuggerUrl"], tab["id"]
