T09 · Insecure Skill Coding Practices
- Location
common/client.py:45- Finding
TLS Certificate Verification Is Disabled for Sensitive API Communications
- Content
View full analysis
dict: url = f"{config.base_url}{path}" token = get_token() resp = _requests.get( url, params=params, headers=_build_headers(token), verify=False, timeout=30, ) if _is_auth_failure(resp): print("Token expired. Re-authentication required...", file=sys.stderr) token = refresh_token() resp = _requests.get( url, params=params, headers=_build_headers(token), verify=False, timeout=30, ) resp.raise_for_status() return resp.json() def post(path: str, params: dict | None = None, json_body: dict | None = None) -> dict: url = f"{config.base_url}{path}" token = get_token() resp = _requests.post( url, params=params, json=json_body, headers=_build_headers(token), verify=False, timeout=30, ) if _is_auth_failure(resp): print("Token expired. Re-authentication required...", file=sys.stderr) token = refresh_token() resp = _requests.post( url, params=params, json=json_body, headers=_build_headers(token), verify=False, timeout=30, ) resp.raise_for_status() return resp.json() ``` Authentication requests repeat the same pattern: ```python resp = requests.post( url, json=payload, headers=headers, verify=False, timeout=30, ) ``` The documentation also presents `http://host:port` as the standard value for `DBDOCTOR_URL`. ### Technical Analysis Se ...[truncated 1939 chars]- Remediation
View remediation
