Slashdot Mirror


New Attack Discovered On Node.js Package Manager npm (softpedia.com)

An anonymous reader writes: A Google researcher has discovered a way in which he could exploit some npm registry design flaws to propagate a malicious package to other packages, and in the projects that load them. The exploit leverages things such as npm's persistent authentication, developers who never lock down dependencies (and often use version number ranges), npm lifecycle scripts that run with the user's privileges (sometimes as root), and npm's centralized registry, which doesn't review or scan code. Attackers can compromise other projects with malicious code, can compromise Node apps used in corporate environments, or they can launch worm-like viruses that poison npm packages at random.

3 of 90 comments (clear)

  1. Re:Why would anyone use JavaScript?! by Anonymous Coward · · Score: 3, Informative

    Because cheap code monkeys cannot write real code.

  2. * to the best of my understanding. Details may be by raymorris · · Score: 4, Informative

    The above post is my (small) understanding of the issue. I'm sure node.js fans will point out a detail that I missed. I'm no expert on Node.js because as someone else pointed out, you use Javascript in the browser, despite it's many flaws, because you have no choice. On the server side, there are several much better options, so it would seem that only people too lazy to learn a server-side language would use Javascript on the server (or maybe some other special case).

  3. Re:Why would anyone use JavaScript?! by pdvalentini6650 · · Score: 3, Informative

    When you are fluent in one language you speak that language even if there are better options.