Dark Mode
Capec-459 Detail
Creating a Rogue Certification Authority Certificate
Detailed Software Likelihood: Medium Typical Severity: Very High
Parents: 473
Threats: T59 T263 T271 T292 T307
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-459 | capec | https://capec.mitre.org/data/definitions/459.html | |
| CWE-327 | cwe | http://cwe.mitre.org/data/definitions/327.html | |
| CWE-295 | cwe | http://cwe.mitre.org/data/definitions/295.html | |
| CWE-290 | cwe | http://cwe.mitre.org/data/definitions/290.html | |
| REF-395 | reference_from_CAPEC | http://www.phreedom.org/research/rogue-ca/ | Alexander Sotirov, Marc Stevens, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik, Benne de Weger, MD5 Considered Harmful Today: Creating a Rogue CA Certificate, 2008--12---30, Phreedom.org |
| REF-587 | reference_from_CAPEC | https://www.win.tue.nl/hashclash/rogue-ca/#Ref | Alexander Sotirov, Marc Stevens, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik, Benne de Weger, MD5 considered harmful today, 2009--12 |
Experiment
-
Craft Certificates: The adversary crafts two different, but valid X.509 certificates that when hashed with an insufficiently collision resistant hashing algorithm would yield the same value.
-
Send CSR to Certificate Authority: The adversary sends the CSR for one of the certificates to the Certification Authority which uses the targeted hashing algorithm. That request is completely valid and the Certificate Authority issues an X.509 certificate to the adversary which is signed with its private key.
Exploit
-
Insert Signed Blob into Unsigned Certificate: The adversary takes the signed blob and inserts it into the second X.509 certificate that the attacker generated. Due to the hash collision, both certificates, though different, hash to the same value and so the signed blob is valid in the second certificate. The result is two certificates that appear to be signed by a valid certificate authority despite only one having been signed.
- Certification Authority is using a hash function with insufficient collision resistance to generate the certificate hash to be signed
- Knowledge of a certificate authority that uses hashing algorithms with poor collision resistance
- A valid certificate request and a malicious certificate request with identical hash values
| High | Medium |
|---|---|
| An attacker must be able to craft two X.509 certificates that produce the same hash value | |
| Knowledge needed to set up a certification authority |
| Access Control | Authentication |
|---|---|
| Gain Privileges | Gain Privileges |
- MD5 Collisions The MD5 algorithm is not collision resistant, allowing attackers to use spoofing attacks to create rogue certificate Authorities.See also: CVE-2004-2761
- SHA1 Collisions The SHA1 algorithm is not collision resistant, allowing attackers to use spoofing attacks to create rogue certificate Authorities.See also: CVE-2005-4900
- PKI Infrastructure vulnerabilities Research has show significant vulnerabilities in PKI infrastructure. Trusted certificate authorities have been shown to use weak hashing algorithms after attacks have been demonstrated against those algorithms. Additionally, reliable methods have been demonstrated for generated MD5 collisions that could be used to generate malicious CSRs.