News for hackers. Stuff that matters.
Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by Tade0 on Saturday June 08, 2024 @04:17PM (#40619958)
I half want to say "again?".

Anyway, one properly mad technique shielding against all npm-related problems that I've seen being used was to include node_modules in the repo.

Terrible, yes, but was a real life-saver when the left-pad issue hit.

Terrible, yes, but was a real life saver

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by dimava on Saturday June 08, 2024 @07:45PM (#40620906)
With Yarn it always was a bit easier[1] as all you have to do is to git-include `.yarn/cache` that contains package zips

[1] https://yarnpkg.com/features/caching#offline-mirror

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by mattlondon on Saturday June 08, 2024 @04:06PM (#40619905)
Correction: bring down the npm ecosystem.

There is a lot of JavaScript that does not use npm for good reasons (e.g. this, but also the rest of the disaster that is npm).

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by elsadek on Saturday June 08, 2024 @04:15PM (#40619951)
This trend that wants clickbait to not be considered clickbait.
Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by tbrownaw on Saturday June 08, 2024 @03:31PM (#40619707)
Does making npm return 404 a portion of the time for a couple minutes really count as "bring[ing] down the JavaScript ecosystem"?
Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by hombre_fatal on Saturday June 08, 2024 @03:44PM (#40619785)
But you can just curl it again in a few minutes and bring it down again. And then again after that, so they claim that it can be done indefinitely. That’s quite a big difference.

Also, you can target not just express but an even higher volume small library that most large projects depend on.

I don’t get how every comment so far has dismissed DoS as a serious issue.

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by akira2501 on Saturday June 08, 2024 @03:57PM (#40619853)
On it's own probably not. Given the way that people hook npm into automated deployments it likely can rise to that level for some users. Given that some people may depend on this deployment strategy without even being aware of it, it does seem like an issue worth noticing.
Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by pgraf on Saturday June 08, 2024 @03:34PM (#40619729)
TLDR: A Denial-of-Service vulnerability triggered via cache poisoning on registry.npmjs.org which can render individual packages inaccessible

I don't see the big security impact that the headline suggests, as active big-scale exploitation would likely be quickly noticed and fixed. The most interesting attack vector IMHO would be to block individual security fixes to packages on a small scale.

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by hombre_fatal on Saturday June 08, 2024 @03:54PM (#40619837)
> would likely be quickly noticed and fixed

Fixed as in fixing the exploit that TFA is reporting? Isn’t that the point of their report?

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by hyperpape on Saturday June 08, 2024 @04:01PM (#40619873)
Perhaps, but it could also be fixed/mitigated by cycling the cache state and blocking bots. It might also be something that can be blocked in a web proxy.

It's interesting, but I share the thought that the impact is overstated.

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by JustLurking2022 on Saturday June 08, 2024 @03:40PM (#40619762)
So they've discussed DoS?

Ahhh... They're trying to sell themselves as security experts.

Re:A Single Vulnerability Can Bring Down the JavaScript Ecos... by wslh on Saturday June 08, 2024 @03:46PM (#40619798)
Hardware math bugs, V8 issues, and nuclear bombs either...