r/javascript • • Nov 27 '18

event-stream vulnerability explained

https://schneid.io/blog/event-stream-vulnerability-explained/
412 Upvotes

70 comments sorted by

View all comments

3

u/Serei Nov 27 '18 edited Nov 27 '18

This is a good explanation of what happened, but I object to the title "event-stream vulnerability explained".

The vulnerability is very straightforward. dominictarr gave control of the repo to right9ctrl. That was the only vulnerability, which is why it's the only thing everyone is discussing.

If you give someone the keys to your house and he steals your money, how he manages to steal your money might be an interesting question, but "vulnerability" isn't the right word for it. The lock had no vulnerability. It did its job: it only let people with the key into your house.

Most of the comments on GitHub are asking the question of why there's no way to develop JavaScript without giving five hundred people the keys to your house. And I can't blame them; it's entirely valid to consider that a more important question than how someone managed to steal money undetected for a few months, after being given a house key.

-9

u/utf8decodeerror Nov 28 '18

Yeah, imo, this is really 100% dominiccarr's fault. NPM can take every precaution they want and it will never stop some package creator willingly transferring control of their package to a malicious actor without vetting them.

I'm shocked that people in the original issue thread were defending his decision to hand over such a popular repo to some random GitHub account with little activity and no previous commits to the repo. And people were defending his decision because of the "as-is" clause in the MIT license.

Is he legally responsible? Clearly not. Is he morally responsible? Absolutely.

3

u/[deleted] Nov 28 '18

Clearly not. Is he morally responsible? Absolutely.

fuck no. lets not damn someone for trusting someone else. The perpetrator is morally responsible for his fucking with people, not the person who was fooled into trusting him. dominiccarr is only guilty of poor judgement in this one instance, that doesn't make him "morally responsible"

0

u/utf8decodeerror Nov 28 '18

He is 100% responsible for his actions to willingly hand over the keys to a fake account with no activity. If he didn't want to maintain, he should deprecated and let someone else fork to maintain. Instead he was lazy and fucked over potentially thousands of people. As another commenter said, open source is built on trust, and Dominic made it pretty clear he is not worthy of being trusted.