CWE-295

Improper Certificate Validation

High

Description

The product does not validate, or incorrectly validates, a certificate.

Potential Impact

How to Fix

Architecture and Design

Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.

Implementation

If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-295 vulnerabilities in your codebase.

Get Security Assessment