News for hackers. Stuff that matters.
Re:Harvesting credit card numbers and passwords from websites by danschumann on Saturday January 06, 2018 @02:02PM (#16086866)
Actually, a main question is this: can npm modules read require.cache? If so, why? Can they require code outside of the npm modules folder. Again, why? Couldn't any npm module steal your credentials, and suffer from the same source minification/github custody stuff?

Take an npm module. It does setInterval and every minute, it checks require.cache for any file with 'config' in it, and sends it to the crook. Is this possible currently?

I would think npm modules should be require-sandboxed to their own directory. Even then, there is compiled code, etc. Oy vey.

Re:Harvesting credit card numbers and passwords from websites by vjeux on Saturday January 06, 2018 @02:19PM (#16086942)
You don’t need to do such complex things. You can just require(‘child_process’).execSync(‘any shell command’) with all the user credentials.