Earlier quoted context omitted.
Similar problems exist in most package management systems. registries that have a manual review process mitigate this danger, but there's still always a risk of malicious code getting into the world. Having said this, we'd like to make exploits such as those discussed in #319816 as difficult as possible. We're exploring supporting new authentication strategies: such as 2-factor authentication, SAML, and asymmetric ke…
Looking forward to 2-factor authentication in npm! For what it's worth, I find Google Authenticator offers a user better experience than text message based MFA.
Vulnerability #319816 – npm fails to restrict the actions of malicious packages
51–60 of 138 posts
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#52> npm encourages the use of semver, or semantic > versioning. With semver, dependencies are not locked to > a certain version by default. For any dependency of a > package, the dependency author can push a new version of > the package. I don't see how this has anything to do with semver. Semver doesn't say anything about not locking dependencies to a certain version (i.e., locking to a specific version is totally leg…
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#53Earlier quoted context omitted.
Looking forward to 2-factor authentication in npm! For what it's worth, I find Google Authenticator offers a user better experience than text message based MFA.
Until you lose your phone. There is no way to back up/recover. So it's tied to this particular device forever. This has been reported years ago and never fixed. Use authy or sms.
Usually I would just login and add the new phone.
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#54Unless I'm not understanding this correctly, every package manager is vulnerable to this attack (along with many others). I'm not sure why someone bothered to write this down and make an official "disclosure". Maybe someone more knowledgeable can explain? I mean really the idea is just that if someone got somebody else's password, they could use it to trick other people into installing a program. Even email has this…
Actually I'm surprised that npm uses some kind of scripts. All I want is to download some JS files. Why is there any scripts at all? I guess it's needed for native compilation, but it's a lazy solution, there could be better solutions.
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#55Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#56> npm encourages the use of semver, or semantic > versioning. With semver, dependencies are not locked to > a certain version by default. For any dependency of a > package, the dependency author can push a new version of > the package. I don't see how this has anything to do with semver. Semver doesn't say anything about not locking dependencies to a certain version (i.e., locking to a specific version is totally leg…
I think that semver encourages unaudited updates by acting as a substitute for auditing in practice. Obviously the spec doesn't say that you should blindly accept all bugfix updates, but in practice many people do. I often do.
It would be nice if there would be a tool that would allow developers to mark a new release as safe. Every package would have it's social safety score and you could decide if you want to investigate a release further.
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#57> npm encourages the use of semver, or semantic > versioning. With semver, dependencies are not locked to > a certain version by default. For any dependency of a > package, the dependency author can push a new version of > the package. I don't see how this has anything to do with semver. Semver doesn't say anything about not locking dependencies to a certain version (i.e., locking to a specific version is totally leg…
As a library maintainer, patches breaking the library is something that happens (not often, but still) - testing can eliminate a lot but not all bugs.
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#58Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#59You're a doer - if you want to see something done about it at Facebook no one is stopping you from forking NPM or contributing code to it.
Re: Vulnerability #319816 – npm fails to restrict the actions of malicious packages
#60And no intention from NPM to fix (according to the article)
What solution can we propose?