3 ms·
I have forgot about how maven works, but at least in npm you have the post install script that lets a package run anything after the dependency is downloaded. S
by ecmascript 4y ago
I have forgot about how maven works, but at least in npm you have the post install script that lets a package run anything after the dependency is downloaded. So that means package creators can run any code they want on your machine.
I don't really remember if maven has something similar since it was years I did anything in the jvm ecosystem but I think some package managers (like composer if I remember correctly) doesn't give this opportunity.
But since node doesn't have a large standard library it means people will reach out for third party packages for stuff that is small tasks in most languages / runtimes.
- capableweb 4y agoHaving post-install step available to maliciously use doesn't really solve anything. As you're a programmer downloading a dependency, you're allowing the dependency full control of your system (in most language, Deno seems to try to address this at least) at runtime (at least), so they could do whatever they want as soon as you include the dependency in your application and run it once.
- ecmascript 4y agoTrue true, but at least you will have to check the api and start implement the library itself. Chances increase that you will see something weird about it the more you have to look at it.