vetkit.swift.tls.hostname-validation-disabled
TLS trust evaluation is configured without host name validation (validateHost: false or a basic X.509 policy). A valid certificate for any other domain is accepted for this server.
Last updated:
Suite: Security
swift
TLS trust evaluation is configured without host name validation (validateHost: false or a basic X.509 policy). A valid certificate for any other domain is accepted for this server.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep validateHost: true and evaluate with SecPolicyCreateSSL(true, host as CFString).
References
Source: packages/engine/rules/sast/swift.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.