目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1325

100%

CWE-295 证书验证不恰当 类漏洞列表 517

CWE-295 证书验证不恰当 类弱点 517 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-295 属于证书验证不当漏洞,指软件未正确验证数字证书的有效性或完整性。攻击者常利用此缺陷实施中间人攻击,通过伪造证书拦截并篡改通信数据,窃取敏感信息或注入恶意代码。开发者应确保严格校验证书链、域名匹配及有效期,禁用弱算法,并启用证书固定机制,以保障传输层安全,防止身份冒充和数据泄露。

MITRE CWE 官方描述
CWE:CWE-295 证书验证不当 英文:产品未对证书进行验证,或验证不正确。
常见影响 (1)
Integrity, AuthenticationBypass Protection Mechanism, Gain Privileges or Assume Identity
When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting s…
缓解措施 (2)
Architecture and Design, ImplementationCertificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
ImplementationIf certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
代码示例 (2)
This code checks the certificate of a connected peer.
if ((cert = SSL_get_peer_certificate(ssl)) && host) foo=SSL_get_verify_result(ssl); if ((X509_V_OK==foo) || X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN==foo)) // certificate looks good, host can be trusted
Bad · C
The following OpenSSL code obtains a certificate and verifies it.
cert = SSL_get_peer_certificate(ssl); if (cert && (SSL_get_verify_result(ssl)==X509_V_OK)) { // do secret things }
Bad · C
CVE ID标题CVSS风险等级Published
CVE-2018-0227 多款Cisco产品授权问题漏洞 — Cisco Adaptive Security Appliance 7.5 -2018-04-19
CVE-2017-3190 AXS Flash Seats for iOS和Android 安全漏洞 — Flash Seats Mobile App 6.8 -2017-12-15
CVE-2017-3194 Pandora for iOS 安全漏洞 — Pandora iOS App 7.4 -2017-12-15
CVE-2017-13083 Akeo Consulting Rufus 安全漏洞 — Rufus 7.5 -2017-10-18
CVE-2017-8445 Elasticsearch X-Pack Security TLS trust manager 安全漏洞 — Elastic X-Pack Security 5.5 -2017-08-18
CVE-2017-7932 多款NXP i.MX产品安全漏洞 — NXP i.MX Product Family 5.7 -2017-08-07
CVE-2017-3218 Samsung Magician 安全漏洞 — Magician 8.8 -2017-06-21

CWE-295(证书验证不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 517 条 CVE 漏洞。