Re:Backdoor injected to NPM express-cookies package
by jononor on Wednesday May 02, 2018 @10:31AM
(#16977203)
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?
[ Parent
| on HN ]
Re:Backdoor injected to NPM express-cookies package
by ekke on Thursday May 03, 2018 @07:08AM
(#16984865)
NPM guys explain it in the blog today: https://news.ycombinator.com/item?id=16975025
Re:Backdoor injected to NPM express-cookies package
by jononor on Friday May 04, 2018 @01:25PM
(#16996352)
Corrected URL to blogpost is: https://blog.npmjs.org/post/173526807575/reported-malicious-...
Re:Backdoor injected to NPM express-cookies package
by dylz on Wednesday May 02, 2018 @07:48PM
(#16982154)
It appears to be middleware that looks at headers, and if a certain condition is met, it'll basically execute https://nodejs.org/api/vm.html#vm_vm_runinthiscontext_code_o... against whatever the header has.