vetkit.rust.tls.accept-any-server-cert
A rustls ServerCertVerifier accepts every server certificate without checking it (man-in-the-middle).
Last updated:
Suite: Security
rust
A rustls ServerCertVerifier accepts every server certificate without checking it (man-in-the-middle).
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use rustls' WebPkiServerVerifier with a RootCertStore (or rustls-platform-verifier); to trust a private CA, add it to the root store instead of replacing the verifier.
References
Source: packages/engine/rules/sast/rust.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.