News for hackers. Stuff that matters.
Re:ESLint compromised, may have stolen your credentials by kevindqc on Thursday July 12, 2018 @11:36AM (#17515619)
How can the exploiter write buggy code? By... writing buggy code?

From what I gather, they wrote some code that downloads a script, which might (or not) get downloaded in chunks. But their code only executes the first chunk. So if the whole script is not in the first chunk, you get a syntax error because it is incomplete.

That exploited code was not in Github, it was added to the ESLint code the exploiter had, which he then published to npm using stolen credentials, bypassing the normal CI process. How would unit tests and linting help with that?

There are no comments on this comment yet.