Comment by acdha

11 days ago

The article states the opposite, which I’m almost certain was due to the attacker realizing that Content-Security-Policy was blocking the payload on many sites:

“A full inline copy of the payload, which runs through eval if 1688360.cc is blocked.”

> The article states the opposite, which I’m almost certain was due to the attacker realizing that Content-Security-Policy was blocking the payload on many sites: > > “A full inline copy of the payload, which runs through eval if 1688360.cc is blocked.”

No, the article doesn't state that the JS served by all listed first party websites was compromised (but see note below). The original maliciously modified content was still (in most cases) served from an optimizely domain like cdn.optimizely.com. The cdn.optimizely.com would not have been blocked by web browsers. The "full inline copy of the payload" refers to content served through that optimizely payload, instead of those additional domains the attacker had set up. About a paragraph or so above your quote:

> The file was still served from cdn.optimizely.com, with Optimizely's certificate, from a host that every affected site already trusted.

That said, while this is a very common scenario, it doesn't cover all of them. There's still a possibility that certain optimizely customers have set up a reverse proxy for the optimizely JS snippet. If this proxy was through a separate sub-domain it's possible NoScript would have caught it (if user opted for sub-domain level blocking). If this proxy was through one of their own primary domain names that user already trusted in Noscript, it would not catch it. So it's not perfect, but covers most common scenarios.

Taking a step back, I'm not sure why there is so much pushback in this thread. Most of it seems to be based on either no or incorrect reading of the information or incorrect understanding. I'm not in any way associated with NoScript or trying to convince folks to use it. Given the incident, I think it's worth stating that this type of attack falls under its main use cases. A reasonably configured NoScript would have protected users in most of these cases. Whether it makes sense for users to use it or not is up to them - it depends on where you see the line between security and convenience tradeoff.

  • > A reasonably configured NoScript would have protected

    I don't doubt that. But how many users can achieve a reasonably configured NoScript, without breaking things they want to use? I am a developer, so I should be able to do it or I were a bad one. But I am sick of an immoral industry that requires me to do extra work because they are trying to steal something from me in an ever growing multitude of ways every time I click somewhere and even without.