Tainted flow: 'req' from os.environ.get (line 52, 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 def getnote_get(path): req = urllib.request.Request(f"{BASE_URL}{path}", headers={'Authorization': API_KEY, 'X-Client-ID': CLIENT_ID}) with urllib.request.urlopen(req, timeout=15) as r: return json.loads(r.read()) def notion_req(method, path, body=None):
