Tainted flow: 'r' from os.environ.get (line 43, 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(6): try: r = urllib.request.Request(API + path, data=data, headers=h, method=method) return json.load(urllib.request.urlopen(r, timeout=180)) except urllib.error.HTTPError as e: msg = e.read().decode()[:800] if e.code in (429, 500, 502, 503, 504) and attempt < 5:
