Hacker News new | ask | show | jobs
by cmiles74 19 days ago
Is the problem open source? I haven't see these kinds of widespread problems coming from Java dependencies (25 years old) or Perl (maybe 30 years old)? Okay, maybe people aren't using Perl like they used to but Java is still a thing.

Part of it is the inclination of the developer to make the thing more robust. Part of it is lowering the barrier of entry, maybe to the point it's _too_ easy to submit a package. Part of it is bad decisions made by the package manager, like running arbitrary scripts.

2 comments

I don’t doubt you would find a trove of issues in CPAN if you went looking. It’s not an interesting target, though, because it’s all but dead.

Java via maven central is similar. It’s not a popular language. We know those libraries are riddled with issues - log4j’a big vulnerability isn’t that old - and simply requiring a GPG signature on a package is a thin guard against compromised uploads.

The NPM ecosystem is uniquely suited to supply chain attacks though. It has a massive rate of churn, which makes it impossible to maintain dependencies safely. You either lock in and hope there’s no big issues or ride the wave and hope you don’t get hit by zero days.

I agree that CPAN is not as active as it once was. Maven is hardly dead, it's pretty active (as is Java the language). NPM is very busy but they also have a very real bot problem.
Apologies, I didn't mean to imply Maven was dead, though I can see how it comes through that way. I meant to imply Java is less popular than other modern languages, and is a bit less interesting as a target as a result. Not unpopular, not dead.
Also, egg all over my face with java4shell news today :-)
Open source as in "you can use this for free" isn't the problem, but open source as in "here's a repository of one million pieces of code that an evolved monkey banged out in two hours" is a problem.

5/5, account is now locked