4 Security Failures in One Week. Which One Hits You?

summarized

TLDR

Emodra's certificate authority signing keys had only about 8 bits of randomness, making them guessable in milliseconds and allowing certificate forgery for api.stripe.com. Browsers and Node.js moved fast to distrust the certificates, but any tool still trusting them is vulnerable. This is a fundamental failure of key generation, not a sophisticated attack.

Key points

PHP bug scored 9.2/10 and affects versions older than 8.2.35, 8.3.36, 8.4.27, or 8.5.12.

Light LLM 1.107.0 on PyPI contained a file that runs on Python startup and steals credentials.

Emodra's signing keys had only 256 possible values, allowing certificate forgery in milliseconds.

Scott Helme forged a certificate for api.stripe.com using guessed keys.

Mozilla distrusted Emodra certificates on October 17th.

Tools mentioned

Techniques

  • long jump (PHP memory handling)
  • Python .pth file execution
  • background process for command and control
Transcript (captions)

0:00 A PHP bug scored 9.2 out of 10, and a Python package got poisoned on October 21st, but the internet isn't collapsing. TechCrunch called it a very bad cybersecurity day, and that's fair. A

0:11 bad day isn't a collapse though. What matters is who actually has to do something. The feed makes it sound like one big attack. It isn't. Each of these has its own cause, so your exposure

0:20 depends on what you run. If you host a PHP site, you have one job today. If you pulled a certain Python package, you have a different one. If your scripts call web APIs, you have a third. Sorting

0:30 by what you run beats scrolling the feed. PHP first. When PHP runs out of memory, it uses a jump called long jump that can leave a request half set up, and the shutdown code then reads that

0:40 half-built state. On each branch, anything older than 8.2.35, 8.3.36, 8.4.27, or 8.5 12 is affected, and the advisory says updating is the only

0:52 complete fix. Cert-EU says proof of concept exploits have begun to circulate, and attacks are likely. No primary source confirms attacks in the wild yet. 8.1 and older get no official

1:02 patch, so those sites need to move to a newer branch. Python's the sneaky one. Step Security found light LLM 1.107.0 shipped a 12-byte file, cook.pth, that Python runs on every start. Nobody had

1:15 to import light LLM. A second file then starts a background process that checks a GitHub repo every hour for new instructions, and the stealer goes after browser logins, SSH keys, and cloud

1:26 secrets. Light LLM's post puts the package on PyPI from 11:39 a.m. to 1:23 p.m. UTC, and that works out to under 2 hours. The Docker images stayed up until 2:20 p.m. UTC, so check those too. If

1:40 you installed it, delete cook.pth and sitecustomize.py, kill the background process, go back to 1.106.2, and rotate every credential, then

1:50 certificates. Emodra is a certificate authority, a company that browsers and tools trust to vouch that a site is who it says it is. Eight of its signing keys should have been huge 384-bit numbers,

2:01 but they had about eight bits of randomness. That's only 256 possible values. So, Scott Helme tried one, then two, then three, and so on. Checked each against the published public key, and

2:12 found all eight in milliseconds. Example keys were four, then 56, and 115. Yes, those were the whole keys. With one, he forged a certificate for api.stripe.com that curl, python, and node accepted.

2:25 Browsers moved fast, though. Mozilla distrusted the certificates on October 17th, and node.js updated its bundled CA list. DE Mudra says the revoked intermediates never issued a

2:35 certificate. The risk is any tool that still trusts them. So, if you run a site or write python, here's the list. Update PHP. Update node.js, which also carries the new certificate list. Keep your

2:47 browser and operating system current. And if you ever installed light LLM 1.107.0, rotate everything. A bad week, not a collapse. When did you last update the

2:56 things that serve your site?

Frontier News · by Hyperjump Technology