Tainted flow: 'req' from os.getenv (line 24, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
req = urllib.request.Request(f"{CLAWNED_SERVER}{endpoint}", data=body, method=method, headers={"Authorization": f"Bearer {CLAWNED_API_KEY}", "Content-Type": "application/json"}) try: with urllib.request.urlopen(req, timeout=60) as resp: return json.loads(resp.read().decode()) except urllib.error.HTTPError as e: print(f"[!] API error {e.code}: {e.read().decode() if e.fp else ''}"); sys.exit(1)- Confidence
- 97% confidence
- Finding
- with urllib.request.urlopen(req, timeout=60) as resp:
