r/OutOfTheLoop • u/Geoclasm • Oct 23 '26
Answered What's up with 4?
I know it's related to this PHP vulnerability fallout, and the memes are hilarious, but what does 4 have to do with it?
229
Upvotes
•
u/AutoModerator Oct 23 '26
Friendly reminder that all top level comments must:
Please review Rule 4 and this post before making a top level comment:
http://redd.it/b1hct4/
Join the OOTL Discord for further discussion: https://discord.gg/ejDF4mdjnh
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
252
u/ClockworkLexivore Oct 23 '26
Answer: It's not related to the PHP vulnerability, but your confusion is understandable. It's been a busy week for the poor souls in IT.
Separate from the PHP issue, there was a certificate issue. When you visit websites your browser checks that website's certificate to make sure it's the real website and not some imposter. Those certificates are handed out by certificate authorities - companies whose whole job is to be trustworthy and vouch for other stuff on the internet.
One of those certificate authorities (eMudhra) messed up bad. Certificate creation involves a private key value that's a number hundreds of bits in size (so, 100+ digits long) and they were caught using keys like..."4". Or "115". eMudhra has said it was a combination of bugs and human error, but a lot of things would have to go wrong for that hilariously bad of a problem to happen.
Keys that small are easily broken, and if you break the keys of a certificate authority you can pretend to be them and trick anybody who trusts them, which is...most everybody. There's been a lot of work in the last few days with people scrambling around their systems to blacklist eMudhra so that they don't trust the wrong certificates.
(For extra humor, '4' as a random number has a history in the tech world; see this XKCD for an example. So it's extra funny that they actually used '4' in their screwup.)
28
u/dominatrixyummy Oct 23 '26
Answer: It’s separate to the php vulnerability. An Indian certificate authority (CA) got caught using _extraordinarily_ weak private keys for signing TLS certificates. This CA was trusted by all major operating systems and browsers.
Typically these keys are made up of numbers that are hundreds of digits long. This CA had keys made using the number “4”, among other very small numbers.
TLS certificates are how computers secure data over the internet. It is also used to verify a domain belongs to who it claims to.
Because their key was so weak, it took less than 1 second for a basic GPU to crack it. This meant an attacker who did this would be able to create a TLS certificate for any domain, and it would be trusted by browsers and other software as if it were 100% legitimate.
And by any domain, I mean any. Banks, government portals, app stores, APIs, software packages. Once they do this, there would also need to either intercept traffic from your device with network tampering, or trick you into going to their fake website.
392
u/PGSylphir Oct 23 '26
answer: The short and sweet is that eMudhra, a Certificate authority, got cracked in milisseconds due to a bunch of their cryptographic keys being all very low numbers, one of them being 4.
"Oh but what does that mean"... well... usually a cryptographic key have a bit over 100 DIGITS. That length is so that breaking those keys take thousands if not millions of years. Effectively making it near impossible to break with current technology.
eMudhra's keys were under 3 digits, this can be broken in milisseconds by even a home computer.
30
u/jmaaron84 Oct 23 '26
Answer: it actually doesn't have to do with the PHP vulnerability. It's actually far worse. Private keys for an Indian cert authority were compromised. One of those keys was literally just the number 4.
https://www.theregister.com/security/2026/10/20/indian-certification-authority-emudhras-private-keys-compromised-one-of-them-was-the-number-4/5304312
8
u/TheOwlMarble Oct 23 '26 edited Oct 23 '26
answer: Not PHP.
Basically, all server traffic on the Internet relies on certificates, which are proof that the server you're talking to is are who they say they are. Certificate trust is setup like a pyramid and flows down.
At the top of the pyramid are Certificate Authorities (CA). They use real world means to prove themselves and then use their digital certificates to validate other servers, so those other servers don't have to physically present their certificates to the world and get the luxury of remaining digital-only. Those approved servers can then sign for other servers they trust, and down the pyramid you go. It's very common to see a hierarchy of CA > Company > Program > Server.
In order for these certificates to be secure and Internet traffic trusted, they need to be kept secure and very hard to guess, which means they need to be enormous numbers.
Well... An Indian CA turned out to very much not be using big numbers.
One of them was just 4. Not 4 googol or something. 4.
Realistically, brute force attacks tend to count up and can try billions of numbers a second, so if the answer is 4, that's an instant crack. That then allows impersonation. Someone else could claim that this CA had signed off on them being legit, and therefore you should trust their totally-not-malware downloads.
5
u/Danny-Fr Oct 23 '26
Answer: if you were hung up on 6,7... Be ready to have another integer ruin your online life.
You know the "s" in "https". That stands for Secure. That's when your browser does NOT come up with a warning when you try to access a website.
You can't just wish an "s". You need to earn it by proving your ownership with real details, to a company that will sell you a certificate.
The proof of that certificate is a digital signature your browser is gonna check. That signature is supposed to be a LONG and COMPLEX. As in hundred of characters.
The reason is: this signature is the digital proof that your website is legit. If someone knows it, they can impersonate your, say, banking website.
Well there's this company in India that's been found to deliver a signatures that was just... '4'. That's it. Just the number 4.
More problem: 5, 6, 7... Are also apparently on the table, all the way up to "wait for quantum in order to guess it", all the way down to "4".
Understandably, some people aren't taking the news very well.