Live data from Hacker News

Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

bleepingcomputer.com

981–990 of 1001 posts

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#981

Earlier quoted context omitted.

You are saying "scary", but I think "alarming" is more appropriate. It's an alarm that should be buzzing through sleepy programmer skulls. It should alert them to the fact that it's no longer the small company that respected programmers, where you felt your account was yours, and your repositories were yours. The rules have changed with that acquisition, and Microsoft exploited the good reputation of that small compa…

GitHub has always been about "social coding". This is a quote on their homepage on May 2008 (three months after GitHub was founded): > What’s amazing about Github is how it really brings the social aspect into play. Chris and Tom are showing us all visually how git development is supposed to work. I know I personally had some bing moments once I started pulling in commits from external git repos. https://web.archive.…

> GitHub has always been about "social coding".

Yeah, you're right: they weren't "one of the good guys" even before the acquisition. Microsoft were only the biggest and most well-known proponent, but never a monopolist of EEE.

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#982
post #449

Earlier quoted context omitted.

Yeah, I was a GitHub user in 2008. Though it obviously had a social aspect, it wasn't considered a "social network" type of site. Its ongoing transformation into one is a result of the acquisition by Microsoft.

I have always considered it a social network, 'the social network for young programmers' as I called it, which turned free software into social networking (portfolio for first employment(s), etc.), and that's why I always refused to create an account over there as I don't want to push those things even further, and got gradually more appalled as I watched projects following the trend and moving there one after the ot…

Like young people in general don't know what a file is any more, young developers don't know what git is: they think GitHub is git.

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#983
post #489

Earlier quoted context omitted.

> ... it’s not obvious to me? If the source was maintained on Bitbucket, why the hell would bitbucket nuke the developer's account access? That's not their problem what happens on NPM. Github and NPM are defacto the exact same company on the other hand. Github actions are in retaliation of NPM "mispublishing".

> why the hell would bitbucket nuke the developer's account access? a counter-factual that isn't known or proven. May be bitbucket would also nuke the repo, if NPM asked them and show proof that it contains malicious code. It would prevent spread, and would prevent damage.

>> why the hell would bitbucket nuke the developer's account access?

> a counter-factual that isn't known or proven.

No, it's a question. Questions can't be "known or proven"; only answers can.

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#984
post #295

Earlier quoted context omitted.

I don't understand why. It's his code to break if he wants. But I guess when you use a social media service to host your code these are expected and normal results.

> It's his code to break if he wants. This is a library, not standalone software. Breaking it means breaking the code of every software which uses that library.

> Breaking it means breaking the code of every software which uses that library.

No, those other programs importing it is what breaks them. They do that themselves. Or does he have push access to all their repositories?

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#985

Earlier quoted context omitted.

"THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR T…

> Unfit software that causes damage is covered, intent or no. Well, no, an assertion of nonliability isn’t a magical incantation; local law in whatever jurisdiction is applicable may limit the effect of such an assertion; in places with meaningful consumer protection laws there are limits on the ability to disclaim warranties, and even without decent consume protection law it's often impossible to disclaim liability…

> Well, no, an assertion of nonliability isn’t a magical incantation; local law in whatever jurisdiction is applicable may limit the effect of such an assertion

Did he install this "malware" on people's computers?

> with meaningful consumer protection laws there are limits on the ability to disclaim warranties

"Consumer"... as in, "someone who bought something"? Oh well, I guess he'll have to pay them all back everything they paid for it. How much, exactly, was that again?

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#986

Earlier quoted context omitted.

What damage did they cause?

Broke cli tools (firebase for me), computer crashed because of some weird infinite loop out of memory error that I wasn't able to recover from. Anyway good wake up call not relaying on million of deps for npm works hopefully.

No, you broke your CLI tools. By unthinkingly pulling in stuff from someone else's repository without vetting it. Or using other tools which did, which amounts to the same thing.

Good that you woke up to that.

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#987
post #10

Earlier quoted context omitted.

Why would the developer of any software that comes explicitly without warranty be hold responsible for downstream breakages? It's not as if one could force people to upgrade to newer versions and they can always keep depending on the old releases.

The warranty issue is a red herring. A warranty is an affirmative guarantee of quality: you are (in essential concept of not in precise detail) agreeing to be held to a "strict liability" standard. If I buy real estate and I am granted a warranty deed, and the title to the property comes into question, the seller can be brought to account to make me whole or indemnify me, regardless of who is at fault for the title d…

OK, so sue him to pay you back every dime you paid for his code.

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#988

Earlier quoted context omitted.

Printing strings is malware?

In an infinite loop, yes.

How did he propagate this virus? Did he send everyone an email saying "Click here for hot chicks for free!", or what?

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#989

My takeaway from this story is that I never really gave a thought about the fact that Github can close your account... And since on Github you are not allowed to have multiple accounts (e.g. personal vs work account), when that happens they are taking away your ability to work. I am going to set up a self hosted git server for my personal projects straight away. I am thinking about Gitea, any one can share their expe…

> I am going to set up a self hosted git server for my personal projects straight away. I am thinking about Gitea, any one can share their experience with it?

Nope, sorry.

> Or alternatives?

The answer is in the question: "git server". What's wrong with just git? Why do people think they need some other crap on top of it? (Sorry, stupid question, I know why: Because they've been conditioned to by GitHub's successful EEE campaign.)

Re: Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps

#990

Anyone knows what the author meant by the "LIBERTY LIBERTY LIBERTY" message? It's unclear if it's referring to current authoritarian turns in our western world, big corps using his software for free, or something else.

> It's unclear if it's referring to current authoritarian turns in our western world, big corps using his software for free, or something else.

Or both of those two.

Post reply on HN