logoalt Hacker News

eviks • today at 6:19 PM • 5 replies • view on HN

> 2024, PHP underwent its first external security audit

> PHP security team, operating on consensus, struggled to choose

What an unfortunate waste of a security audit. (and consensus is an obvious flaw in decision making)

> PHP runs a large share of the web... Yet security work on PHP itself still depends on a small group ...

Another unfortunate big structural issue that's unlikely to change.

Are there structurally much safer ecosystems out there?


Replies

barelysapient • today at 6:23 PM

I wonder if that isn't a side effect of how its structured...

When a corporation sponsors the language, such as Java, Go, .Net, there's an inherent economic component which acts as a forcing function.

PHP being a foundation sounds nice. But consensus wasn't strong enough to affect the key outcomes.

berkes • today at 7:36 PM

> Are there structurally much safer ecosystems out there?

Several attributes make a safer ecosystem. An important one is diversity - technical diversity.

For an interpreted language, the runtime is important. Python has several runtimes, as does Ruby. Javascript also has several, from the few browsers, to node, deno and bun. PHP has for all practical purposes, only one. So if there's a security incident in PHP, it affects almost all users. But when e.g. JRuby has a vulnerability, it will affect only a fraction of the installed ruby applications.

For compiled languages, the tooling, libraries and runtimes is where diversity is important. With e.g. rust, the vast majority of CVEs come from libraries (crates). But since there often are several crates for a single concept, diversity helps mitigate here too.

➕ show 3 replies
redox99 • today at 7:28 PM

Rust and go don't have a C backbone like PHP does. So they are inherently safer to these kinds of vulnerabilities.

➕ show 2 replies
gjsman-1000 • today at 6:23 PM

Yes. They're operated by big tech and called C# or Java.

➕ show 1 reply
_moof • today at 8:03 PM

[flagged]

➕ show 1 reply