CWE-299 证书撤销验证不恰当

admin 2021年12月16日15:51:03评论55 views字数 3847阅读12分49秒阅读模式

CWE-299 证书撤销验证不恰当

Improper Check for Certificate Revocation

结构: Simple

Abstraction: Base

状态: Draft

被利用可能性: Medium

基本描述

The software does not check or incorrectly checks the revocation status of a certificate, which may cause it to use a certificate that has been compromised.

扩展描述

An improper check for certificate revocation is a far more serious flaw than related certificate failures. This is because the use of any revoked certificate is almost certainly malicious. The most common reason for certificate revocation is compromise of the system in question, with the result that no legitimate servers will be using a revoked certificate, unless they are sorely out of sync.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 295 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 295 cwe_View_ID: 699 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 404 cwe_View_ID: 1000

适用平台

Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Access Control Gain Privileges or Assume Identity Trust may be assigned to an entity who is not who it claims to be.
['Integrity', 'Other'] Other Data from an untrusted (and possibly malicious) source may be integrated.
Confidentiality Read Application Data Data may be disclosed to an entity impersonating a trusted entity, resulting in information disclosure.

可能的缓解方案

Architecture and Design

策略:

Ensure that certificates are checked for revoked status.

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 revoked status.

示例代码

The following OpenSSL code ensures that there is a certificate before continuing execution.

bad C

if (cert = SSL_get_peer_certificate(ssl)) {


// got a certificate, do secret things

Because this code does not use SSL_get_verify_results() to check the certificate, it could accept certificates that have been revoked (X509_V_ERR_CERT_REVOKED). The software could be communicating with a malicious host.

分析过的案例

标识 说明 链接
CVE-2011-2014 LDAP-over-SSL implementation does not check Certificate Revocation List (CRL), allowing spoofing using a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2014
CVE-2011-0199 Operating system does not check Certificate Revocation List (CRL) in some cases, allowing spoofing using a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0199
CVE-2010-5185 Antivirus product does not check whether certificates from signed executables have been revoked. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-5185
CVE-2009-3046 Web browser does not check if any intermediate certificates are revoked. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3046
CVE-2009-0161 chain: Ruby module for OCSP misinterprets a response, preventing detection of a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0161
CVE-2011-2701 chain: incorrect parsing of replies from OCSP responders allows bypass using a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2701
CVE-2011-0935 Router can permanently cache certain public keys, which would allow bypass if the certificate is later revoked. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0935
CVE-2009-1358 chain: OS package manager does not properly check the return value, allowing bypass using a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1358
CVE-2009-0642 chain: language interpreter does not properly check the return value from an OSCP function, allowing bypass using a revoked certificate. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0642
CVE-2008-4679 chain: web service component does not call the expected method, which prevents a check for revoked certificates. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4679
CVE-2006-4410 Certificate revocation list not searched for certain certificates. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4410
CVE-2006-4409 Product cannot access certificate revocation list when an HTTP proxy is being used. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4409

分类映射

映射的分类名 ImNode ID Fit Mapped Node Name
CLASP Failure to check for certificate revocation

引用

文章来源于互联网:scap中文网

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月16日15:51:03
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-299 证书撤销验证不恰当http://cn-sec.com/archives/613223.html

发表评论

匿名网友 填写信息