Tainted flow: 'req' from os.environ.get (line 53, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
def fetch_result(config: Dict[str, str]) -> Tuple[int, Dict[str, Any]]: req = build_request(config["CATCH_API_URL"], config["API_KEY"]) try: with urllib.request.urlopen(req, timeout=20) as resp: status = getattr(resp, "status", 200) body = resp.read().decode("utf-8") except urllib.error.HTTPError as e:- Confidence
- 88% confidence
- Finding
- with urllib.request.urlopen(req, timeout=20) as resp:
