DKIM was introduced at a unlucky time; or, happy 20 years of CVE-2008-0166
The Debian package of the cryptography library OpenSSL contained a critical bug from 2006 to 2008, wherein most of the entropy powering the random number generator was not being fed into the pool. This flaw resulted in only 32,768 possible keys per architecture per key type being generated. The issue was not solely Debian's fault; it was unclear how an OpenSSL maintainer approved the change.
Shortly after its public disclosure, every possible key was enumerated, and the space was small enough for attackers to try every key on vulnerable systems.
Around the same time, DomainKeys Identified Mail (DKIM) was emerging as a standard for cryptographically signing outgoing e-mail to prove its authorization. The first DKIM standard compatible with the modern one was introduced as an IETF Proposed Standard in 2007. Many early adopters implemented DKIM on their mail servers, using Debian with OpenSSL, which had the aforementioned bug.
A recent analysis of the DKIM DNS records for the Tranco top million domains revealed that 96 of them still use the vulnerable keys. This includes major entities like a standards organization, a government healthcare department, and several small IT companies. The vulnerability allows anyone to forge mail validly signed for their domain. Notable affected domains have been identified, but the reporter refrains from naming them here.
Rewritten by urgent.news; may contain errors — check the original.
Source: dreamstation.systems