Tainted flow: 'req' from os.environ.get (line 83, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
req = urllib.request.Request(args.url, data=body, method=args.method.upper(), headers=headers) try: with urllib.request.urlopen(req, context=context) as resp: raw = resp.read().decode("utf-8", errors="replace") print(json.dumps({"status": resp.status, "body": _try_json(raw)}, ensure_ascii=False, indent=2)) except urllib.error.HTTPError as e:- Confidence
- 97% confidence
- Finding
- with urllib.request.urlopen(req, context=context) as resp:
