lang:

C#

regex:

X509CertificateValidationMode\.None|X509CertificateValidator\.None

description:

X509CertificateValidationMode.None - No validation of the certificate is done.

X509CertificateValidator.None - Gets a validator that performs no validation on an X.509 certificate. As a result, an X.509 certificate is always considered to be valid.
tags:
insecure certificate validation cwe-295
results