TLS certificates are special files that servers use to prove they really exist at the IP address they say they do (otherwise you get coffee shop hackers intercepting messages and pretending to be the server).
For the user's browser to verify a TLS certificate, it has a stored list of "top-level" TLS certificates that your everyday website can register their certificate with. So when you get the website's certificate, you can algorithmically prove it was verified at the top level, and therefore is legit.
Some of the top-level certificates had trivially breakable encryption key numbers that were recently discovered and removed. One of them was the number 4.
For a looooooong time, the password for one of my accounts was 123456. They stopped letting you do that about a year after I created my account. So teenage me's thought process was that a password that's not even allowed anymore should be harder to crack than any password that is.
It's the same service that emailed me the plaintext password when I was looking for it years later lmao. Wonder why they don't exist anymore.
There always exists a relevant XKCD, and there always exists a more relevant XKCD. One day we'll discover the most relevant XKCD, which holds all the answers to the universe.
Why not have an RNG generate 100 numbers, and then that string of 100 numbers is they key? Why would you not put something in to prevent the key number from being 1 or 2 or even under 10 digits? Why not precede them with 99 zeros first and have it always be a 100-digit number?
To be clear, nobody decided to make the key be 4. That would be a terrible idea. What happened is they set it to 4 for testing purposes, and then they forgot to change it. The key was supposed to be a random 115-digit number.
You're supposed to pick a 4096 bit random number (huge, many digits). Random of course means that 4 has just as much of a chance of being picked, but the rules say that the number also can't be less than 256 . Someone made a big oops and overrode those rules, setting it to 4. A bored person just trying the first few numbers stumbled across 4 being valid
And this will require weeks to months of patching everything, because certbundle management across many applications and languages is a clusterfuck. Especially once containers are involved.
Sorry for sounding bitter, but the PHP 9.2 vulns now go straight into this shite. At least it was just 1% of revenue for eMudhra. It could have hurt the company otherwise! Who cares about the thousands of hours we now have to spend cleaning up their crap.
View all comments
Show parent comment
1.4k
u/SpaceCore0352 Oct 23 '26
TLS certificates are special files that servers use to prove they really exist at the IP address they say they do (otherwise you get coffee shop hackers intercepting messages and pretending to be the server).
For the user's browser to verify a TLS certificate, it has a stored list of "top-level" TLS certificates that your everyday website can register their certificate with. So when you get the website's certificate, you can algorithmically prove it was verified at the top level, and therefore is legit.
Some of the top-level certificates had trivially breakable encryption key numbers that were recently discovered and removed. One of them was the number 4.