- What is CAPEC-459?
- An adversary exploits a weakness resulting from using a hashing algorithm with weak collision resistance to generate certificate signing requests (CSR) that contain collision blocks in their "to be signed" parts. The adversary submits one CSR to be signed by a trusted certificate authority then uses the signed blob to make a second certificate appear signed by said certificate authority. Due to the hash collision, both certificates, though different, hash to the same value and so the signed blob works just as well in the second certificate. The net effect is that the adversary's second X.509 certificate, which the Certification Authority has never seen, is now signed and validated by that Certification Authority.
- How does a Creating a Rogue Certification Authority Certificate attack work?
- It typically unfolds over 3 phases. It begins with: [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.
- How do you prevent CAPEC-459?
- Certification Authorities need to stop using deprecated or cryptographically insecure hashing algorithms to hash the certificates that they are about to sign. Instead they should be using stronger hashing functions such as SHA-256 or SHA-512.
- What weaknesses does CAPEC-459 target?
- CAPEC-459 exploits 3 CWE weaknesses, including CWE-290 (Authentication Bypass by Spoofing), CWE-295 (Improper Certificate Validation), CWE-327 (Use of a Broken or Risky Cryptographic Algorithm).
- How severe is CAPEC-459?
- MITRE rates CAPEC-459 as Very High severity with medium likelihood of attack.