Has it been Pwned
ImplementationPractical impact

BERserk: RSA signature forgery in Mozilla NSS

Mozilla disclosed that NSS, used by Firefox and (then) Chrome, parsed the ASN.1 DigestInfo inside RSA PKCS#1 v1.5 signatures too leniently, allowing a variant of Bleichenbacher's 2006 e=3 forgery. Found independently by Antoine Delignat-Lavaud (Inria) and Intel Security's Advanced Threat Research team, who named it BERserk.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

Lenient BER length decoding left bytes the attacker could control inside the signed block; with a 3-exponent key anywhere in a certificate chain, that slack is enough to compute a forged signature. A forged certificate chaining to a trusted root with e = 3 would let a network attacker impersonate any site. The fix was strict DER comparison. It is the 2006 bug reappearing in a major library eight years later, a recurring theme for PKCS#1 v1.5 signature verification.

Sources

  1. announcementMFSA 2014-73: RSA Signature Forgery in NSSMozilla, mozilla.org
  2. cveCVE-2014-1568NIST NVD, nvd.nist.gov