other
- Location
plugin/upstream/nvidia-tao-toolkit/skills/tao-run-inference-service/references/code-templates.yaml:307- Finding
Remote inference templates transmit user data over plaintext HTTP ## Remediation Suggestions 1. **Use encrypted remote transport by default.** - Configure Brev endpoints behind a TLS-enabled reverse proxy, or use an SSH tunnel with a loopback endpoint. - For Kubernetes, prefer a private service accessed through a controlled tunnel, or a TLS-enabled ingress or gateway. - Store the resulting HTTPS or tunneled loopback URL in the service registry. 2. **Enforce the transport policy in the request helper.** - Reject plaintext HTTP for remote destinations. - Permit HTTP only for explicitly approved loopback connections. - Keep HTTPS certificate and hostname verification enabled, and prevent redirects from downgrading HTTPS to HTTP. 3. **Limit endpoint exposure.** - Bind local Docker publications to `127.0.0.1` unless remote access is explicitly requested. - Restrict remote access using security groups, firewalls, and Kubernetes network controls. - Require authentication at the service or proxy for remotely accessible endpoints; authentication does not replace TLS. 4. **Add regression checks.** - Verify that remote registry entries use HTTPS or an approved encrypted tunnel. - Verify that the request helper rejects remote HTTP endpoints. - Test certificate failures and transport downgrades to ensure they fail closed.
- Content
View full analysis
Vulnerability Details
File Location:
plugin/upstream/nvidia-tao-toolkit/skills/tao-run-inference-service/references/code-templates.yaml: lines 218 and 307 — plaintext Brev and Kubernetes endpoint construction.plugin/upstream/nvidia-tao-toolkit/skills/tao-run-inference-service/references/request.yaml: lines 230–249 — request transmission using the selected endpoint.
Vulnerability Type: Cleartext Transmission of Sensitive Information (CWE-319)
Risk Level: MediumVulnerable Code
The remote service registry templates construct HTTP endpoints:
python # Brev registry entry "host_url": f"http://{brev_instance_ip}:{host_port}",python # Kubernetes registry entry "host_url": f"http://{external_ip}:8080",The request template accepts HTTP and transmits the inference payload without upgrading the connection to TLS:
python def post_to_microservice(base_url: str, path: str, payload: bytes) -> dict: # Reject anything that isn't the registered local microservice URL. # Allowed schemes: plain http to the host_url written by registry_write. if not (base_url.startswith("http://") or base_url.startswith("https://")): raise ValueError(f"Refusing non-http(s) base_url: {base_url!r}") endpoint = f"{base_url}{path}" req = urllib.request.Request( endpoint, data=payload, headers={"Content-Type": "application/json"}, method="POST", ) with urllib.request.urlopen(req, timeout=300) as resp: # local microservice only return json.loads(resp.read()) result = post_to_microservice(BASE_URL, "/v1/chat/completions", body) print(result["choices"][0]["message"]["content"])Technical Analysis
The Brev and Kubernetes deployment templates register remote endpoints using
http://. The request helper accepts that scheme and sends the supplied JSON payload directly to the registered endpoint. Unlike a loopback connection or an SSH-forwarded connection, these ...[truncated 2417 chars]
