hn.today

DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166

dreamstation.systems190 points31 comments
Screenshot of DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166

The discussion connects two developments that overlapped in the late 2000s: the adoption of DKIM email signatures and a severe flaw in Debian’s OpenSSL package, tracked as CVE-2008-0166. From 2006 to 2008, a change left the random-number generator with the process ID as its only varying input. With just 32,768 possible values, the affected software could produce only 32,768 possible keys per architecture and key type, making the keys practical to enumerate. The account notes that responsibility for the flaw is disputed, since an OpenSSL maintainer appears to have approved the change unclearly. DKIM, whose first modern-compatible standard appeared in 2007, was being deployed on servers that commonly ran Debian. Because the standard does not require key rotation, compromised keys could remain in use long after the flaw was fixed.

A scan of DKIM DNS records for the Tranco top million domains found 96 domains still publishing keys generated by the vulnerable software, down from 101 after alerts were sent. Anyone can use those keys to forge mail that appears validly signed by the affected domains. The remaining cases include a major standards organization, a government healthcare department, and smaller IT companies. The scan also identified other problems: one public key tied to a private key leaked elsewhere, 18 private keys exposed in DNS, 386 keys shorter than 768 bits, 2,122 keys between 768 and 1,023 bits, and 124 malformed keys. The findings illustrate how old cryptographic weaknesses and missing rotation practices can leave present-day email authentication vulnerable.

Read on dreamstation.systems31 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin presents Legacy and SegWit methods designed to protect Bitcoin spends against quantum attacks, with adjustable security levels and measured signing times. SegWit versions meet standard relay limits, and spends using both methods have been mined on Bitcoin mainnet. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.