Can someone explain how the injection itself works? I assume it's the require doing the work, but its not so clear how that loads externally instead of from a path in filesystem?
Backdoor injected to NPM express-cookies package
11–18 of 18 posts
NPM guys explain it in the blog today: https://news.ycombinator.com/item?id=16975025
Re: Backdoor injected to NPM express-cookies package
#12And NPM took it down quickly, whew.
did you report it to NPM?
Re: Backdoor injected to NPM express-cookies package
#13And NPM took it down quickly, whew.
did you report it to NPM?
I don't know how many reported it to npm, but when I initially saw the post on HN, I took the steps to report the packages.
I don't know who to credit on this, and neither does npm but OP seems to be the source of these findings, although it would baffle me if they didn't report it to npm.
Re: Backdoor injected to NPM express-cookies package
#14There is no reason to use "express-cookies" when "cookie-parser" exists.
[deleted]
Re: Backdoor injected to NPM express-cookies package
#15I am curious to know whether you reported it to npm upon your findings. npm questioned me for who to credit on this matter, and they would like to know who the original finder was.
Re: Backdoor injected to NPM express-cookies package
#16Can someone explain how the injection itself works? I assume it's the require doing the work, but its not so clear how that loads externally instead of from a path in filesystem?
NPM guys explain it in the blog today: https://news.ycombinator.com/item?id=16975025
Corrected URL to blogpost is: https://blog.npmjs.org/post/173526807575/reported-malicious-...
Re: Backdoor injected to NPM express-cookies package
#17Am I the only one that's only reading the comments after seeing the first two words of the title?