The Prediction of Serial Number in OpenSSL’s X.509 Certificate
Author:
Open Access
- 2 May 2019
- journal article
- research article
- Published by Wiley in Security and Communication Networks
- Vol. 2019, 1-11
Abstract
In 2007, a real faked X.509 certificate based on the chosen-prefix collision of MD5 was presented by Marc Stevens. In the method, attackers needed to predict the serial number of X.509 certificates generated by CAs besides constructing the collision pairs of MD5. After that, the randomness of the serial number is required. Then, in this case, how do we predict the random serial number? Thus, the way of generating serial number in OpenSSL was reviewed. The vulnerability was found that the value of the field “not before” of X.509 certificates generated by OpenSSL leaked the generating time of the certificates. Since the time is the seed of generating serial number in OpenSSL, we can limit the seed in a narrow range and get a series of candidate serial numbers and use these candidate serial numbers to construct faked X.509 certificates through Stevens’s method. Although MD5 algorithm has been replaced by CAs, the kind of attack will be feasible if the chosen-prefix collision of current hash functions is found in the future. Furthermore, we investigate the way of generating serial numbers of certificates in other open source libraries, such as EJBCA, CFSSL, NSS, Botan, and Fortify.Keywords
Funding Information
- Key Research and Development Plan of Shandong Province, China (2017CXGC0704, 2018:12-16)
- Fundamental Research Fund of Shandong Academy of Sciences, China (2017CXGC0704, 2018:12-16)
This publication has 10 references indexed in Scilit:
- Recoverable Random Numbers in an Internet of Things Operating SystemEntropy, 2017
- An Analysis of OpenSSL’s Random Number Generator2016
- Freestart Collision for Full SHA-12016
- Reverse-Engineering of the Cryptanalytic Attack Used in the Flame Super-Malware2015
- Practical Effect of the Predictability of Android OpenSSL PRNGIEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences, 2015
- Predictability of Android OpenSSL's pseudo random number generator2013
- Chosen-prefix collisions for MD5 and applicationsInternational Journal of Applied Cryptography, 2012
- Short Chosen-Prefix Collisions for MD5 and the Creation of a Rogue CA Certificate2009
- Chosen-Prefix Collisions for MD5 and Colliding X.509 Certificates for Different Identities2007
- How to Break MD5 and Other Hash Functions2005