Tainted flow: 'headers' from os.environ.get (line 104, 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 if body is not None: headers["Content-Type"]=content_type or "application/json" try: self.request_count+=1 with urllib.request.urlopen(urllib.request.Request(url,data=body,headers=headers,method=method),timeout=45) as response: result=json.loads(response.read() or b"{}") self.last_request=time.monotonic(); self.checkpoint(); return result except urllib.error.HTTPError as exc:
