Target Language
csharp
Query Name (Optional)
Global SSL disable
Query Type
Security
Query Description
A huge anti pattern in .net is to set the global SSL config to always return true - this impacts all subsqueent requests.
Expected Severity
High
Code Examples
// Source - https://stackoverflow.com/a/18624335
// Posted by Adam Venezia, modified by community. See post 'Timeline' for change history
// Retrieved 2026-01-26, License - CC BY-SA 3.0
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
CWE/CVE Reference (Optional)
(help me figure this out!)
References (Optional)
https://stackoverflow.com/a/18624335
Code of Conduct
Target Language
csharp
Query Name (Optional)
Global SSL disable
Query Type
Security
Query Description
A huge anti pattern in .net is to set the global SSL config to always return true - this impacts all subsqueent requests.
Expected Severity
High
Code Examples
CWE/CVE Reference (Optional)
(help me figure this out!)
References (Optional)
https://stackoverflow.com/a/18624335
Code of Conduct