| Network Security Consulting SecurityFocus Article
Group Attacks Flaw In Browser Crypto Security Security Article by Robert Lemos - SecurityFocus http://www.securityfocus.com/news/11541 2008-12-30 An international group of security researchers and academic cryptographers urged browser makers and certificate authorities on Tuesday to drop support for digital signatures based on MD5 hashing, after they claimed to have successfully attacked the trust infrastructure of the Internet by creating a fake, but valid, certificate. The research presented at the 25th Chaos Communications Conference in Berlin, Germany builds a practical attack against the Internet public key infrastructure (PKI) based on already-known weaknesses in the design of MD5 hash functions. Using the techniques, the researchers claimed to have created a rogue certificate authority that could distribute fake Secure Socket Layer (SSL) certificates that all popular browsers would treat as legitimate. If online criminals duplicated the work, they could use their own rogue certificate authority along with a man-in-the-middle attack to create virtually undetectable phishing schemes that could collect sensitive information normally protected by SSL encryption, the researchers said. "The major browsers and Internet players such as Mozilla and Microsoft have been contacted to inform them of our discovery and some have already taken action to better protect their users," Arjen Lenstra, the head of the Laboratory for Cryptologic Algorithms at the Swiss Federal Institute of Technology at Lausanne (EPFL), said in a statement. "The only objective of our research was to stimulate better Internet security with adequate protocols that provide necessary security." In addition to Lenstra, the research group included independent security researcher Alexander Sotirov, Marc Stevens of the Cryptology Group at Centrum, Wiskunde and Informatica (CWI), Jacob Appelbaum of The Tor Project, David Molnar of the University of California at Berkeley, Dag Arne Osvik of the Swiss Federal Institute of Technology at Lausanne, and Benne de Weger of Eindhoven University of Technology in the Netherlands. To limit any possible malicious use of the certificate, the group restricted the validity of the certificate to the span of a single month in 2004. Both Microsoft and Mozilla issued statements on Tuesday that stressed that the vulnerability exploited by the attack is not a browser issue, but a problem that needs to be mitigated by the six remaining certificate authorities that use the MD5 hash algorithm to generate certificates. "This new disclosure does not increase risk to customers significantly, as the researchers have not published the cryptographic background to the attack, and the attack is not repeatable without this information," Microsoft said in its advisory. "Microsoft is not aware of any active attacks using this issue and is actively working with certificate authorities to ensure they are aware of this new research and is encouraging them to migrate to the newer SHA-1 signing algorithm." The researchers built on work published in 2004 and 2007, demonstrating weaknesses in a commonly-used hash algorithm known as MD5. Hash algorithms are typically used to reduce a large data file such as a Word document or e-mail message to a simple, if sometimes long, number that can be used to identify the data, in the same way that fingerprints are used to identify humans. A good hash function gives a completely different result if the original file is changed even slightly. A variety of encryption and security functions use hashes, from integrity checks and digital signatures to the secure communications and trust infrastructure of the Internet. On the Web, hash algorithms are used to sign certificates used by online stores, banks and other security-sensitive sites to identify themselves and encrypt the communications channel between the site and its customers. Certificates are issued by certificate authorities (CAs), which are either trusted because they are a top-level, or root, authority or because they have been granted the ability to issue certificates by a root CA. All Web browsers maintain a list of trusted root certificate authorities as a way to verify certificates issued by those CAs. A certificate that appears to be issued by a trusted CA will be accepted as valid by all browsers. The research presented at the 25th Chaos Communications Conference in Berlin, Germany builds a practical attack against the Internet public key infrastructure (PKI) based on already-known weaknesses in the design of MD5 hash functions. Using the techniques, the researchers claimed to have created a rogue certificate authority that could distribute fake Secure Socket Layer (SSL) certificates that all popular browsers would treat as legitimate. If online criminals duplicated the work, they could use their own rogue certificate authority along with a man-in-the-middle attack to create virtually undetectable phishing schemes that could collect sensitive information normally protected by SSL encryption, the researchers said. "The major browsers and Internet players such as Mozilla and Microsoft have been contacted to inform them of our discovery and some have already taken action to better protect their users," Arjen Lenstra, the head of the Laboratory for Cryptologic Algorithms at the Swiss Federal Institute of Technology at Lausanne (EPFL), said in a statement. "The only objective of our research was to stimulate better Internet security with adequate protocols that provide necessary security." In addition to Lenstra, the research group included independent security researcher Alexander Sotirov, Marc Stevens of the Cryptology Group at Centrum, Wiskunde and Informatica (CWI), Jacob Appelbaum of The Tor Project, David Molnar of the University of California at Berkeley, Dag Arne Osvik of the Swiss Federal Institute of Technology at Lausanne, and Benne de Weger of Eindhoven University of Technology in the Netherlands. To limit any possible malicious use of the certificate, the group restricted the validity of the certificate to the span of a single month in 2004. Both Microsoft and Mozilla issued statements on Tuesday that stressed that the vulnerability exploited by the attack is not a browser issue, but a problem that needs to be mitigated by the six remaining certificate authorities that use the MD5 hash algorithm to generate certificates. "This new disclosure does not increase risk to customers significantly, as the researchers have not published the cryptographic background to the attack, and the attack is not repeatable without this information," Microsoft said in its advisory. "Microsoft is not aware of any active attacks using this issue and is actively working with certificate authorities to ensure they are aware of this new research and is encouraging them to migrate to the newer SHA-1 signing algorithm." The researchers built on work published in 2004 and 2007, demonstrating weaknesses in a commonly-used hash algorithm known as MD5. Hash algorithms are typically used to reduce a large data file such as a Word document or e-mail message to a simple, if sometimes long, number that can be used to identify the data, in the same way that fingerprints are used to identify humans. A good hash function gives a completely different result if the original file is changed even slightly. A variety of encryption and security functions use hashes, from integrity checks and digital signatures to the secure communications and trust infrastructure of the Internet. On the Web, hash algorithms are used to sign certificates used by online stores, banks and other security-sensitive sites to identify themselves and encrypt the communications channel between the site and its customers. Certificates are issued by certificate authorities (CAs), which are either trusted because they are a top-level, or root, authority or because they have been granted the ability to issue certificates by a root CA. All Web browsers maintain a list of trusted root certificate authorities as a way to verify certificates issued by those CAs. A certificate that appears to be issued by a trusted CA will be accepted as valid by all browsers. Yet, despite the discovery of major weaknesses in the MD5 hash algorithm, six certificate authorities continued to issue MD5-signed certificates in 2008. The research group analyzed a sampling of 30,000 certificates from sites online and found that 30 percent were signed using MD5. Nearly all, 97 percent, came from a single certificate authority: RapidSSL. Part of the problem is that every mom-and-pop e-commerce site needs an SSL certificate to create a trusted store front, but most merchants do not want to pay hundreds of dollars per year for a few bits, so cheaper and less trustworthy providers have appeared, said HD Moore, director of BreakingPoint Labs. "If you have that many people that need it for e-commerce, the further down the chain you go the less strict the validation is going to be because you are cutting costs," he said. The group of researchers took advantage of RapidSSL's fast issuance of certificates. Their attack consisted of creating two certificates and ensuring that the certificates had the same MD5 hash what is known as a collision. The two certificates consisted of a Web site certificate for a legitimate site and an intermediate certificate authority (CA) certificate that normally identifies a trusted issuer of certificates. Because RapidSSL has an automated script that issues MD5-signed certificates and assigns a sequential serial number and guessable expiration date to the certificates, the researchers were able to fill in the fields of the certificate with the appropriate information and use a distributed computer made up of 200 PlayStation 3 game machines equivalent to 8,000 standard desktop computers to calculate the data needed to make the two certificates have identical MD5 hashes. Each attempted attack took less than two days. Because of problems with timing and other certificate requests taking the serial number they had reserved, the team was not successful until its fourth try. Armed with the new certificate, the researchers could have issued any number of additional certificates using the authority of their newly minted rogue CA. There is no easy way to revoke the MD5-signed certificates, security experts said. Removing the six certificate authorities from the trusted CA list included in the major browsers would cause chaos among the companies' customers, as browsers would not longer register legitimate sites as trusted. The problem underscores that the infrastructure underpinning Secure Sockets Layer (SSL) is in need of a rewrite, said Dino Dai Zovi, a well-known security researcher and security manager at a financial firm whose name he asked not be used. "We need the browser trust model 2.0," Dai Zovi said. "Right now there is an inner circle of CAs, and then other authorities that are less well known and trusted, but to a browser all certificate authorities are trusted equally." The researchers urged browser makers and certificate authorities to move away from support for certificates that use MD5 hashes and toward stronger standards as quickly as possible. The National Institute of Standards and Technology (NIST) has kicked off its search for a stronger hashing standard, currently dubbed Secure Hash Algorithm 3 (SHA-3). Some four dozen entries are currently under scrutiny. "It's imperative that browsers and CAs stop using MD5, and migrate to more robust alternatives such as SHA-2 and the upcoming SHA-3 standard," EPFL's Lenstra said in the statement. Neither Microsoft nor Mozilla has set a deadline by which certificate authorities would need to complete their move to SHA-1 or SHA-2 certificates and reissue new credentials to their customers. "We've been in contact with vulnerable certificate authorities on this issue, and are confident that they are working with appropriate urgency to address the problem by eliminating their use of MD5 for certificate generation," Johnathan Nightingale, the so-called "Human Shield" for Mozilla, said in a statement sent to SecurityFocus. "We don't believe that a deadline or other 'threat' is either helpful or necessary at this point, and we're glad that MD5 will be eliminated from CA use in short order." UPDATE: The article was updated Tuesday afternoon with additional comments from security experts and statements from both Mozilla and Microsoft. If you have tips or insights on this topic, please contact SecurityFocus.
|