Re:Understand filesystem takeover vulnerabilities in NPM Jav...
by johannes1234321 on Wednesday January 08, 2020 @04:17AM
(#21989772)
Why would one use such a exploit? - Using a postinstall script to do evil stuff is way more powerful and simpler to use. And thus more dangerous. If I want to hide something I put it in my libraries code (the user installed it, so at some point in time will `require` my code)
Depending on code loaded means you trust it.