Comment by thought-gap
11 days ago
> gitlab.com and my bank are on the list.
Per the linked article, those are not the domains where the malicious JS was served from.
11 days ago
> gitlab.com and my bank are on the list.
Per the linked article, those are not the domains where the malicious JS was served from.
> Some customers serve their snippet from their own domain, such as opt.scheels.com/js/<id>.js or www.vodafone.com.au/js/<id>.js. Those were affected too, because the content comes from the same Optimizely project.
in some cases they were
Yep. That's true in the cases where Optimizely customers had set up a proxy to the Optimizely JS content. I suspect (though I have no way of knowing) that these are exceptional cases and not the norm. In most cases I expect Optimizely customers would use the snippet that loads JS from the Optimizely CDN.
To be more specific
NoScript would have still caught if such proxy was through
* a separate custom domain that was not previously trusted by the user
* a separate sub-domain of a trusted peer domain (like the opt.scheels.com example) and NoScript user opted for sub-domain level blocking
NoScript would not have caught if the proxy was through the first party primary domain (like the www.vodafone.com.au/js example) - i.e. the domain or sub-domain that the user had already trusted.
So, while it's not a full guarantee, it reduces the exposure risk significantly in most common scenarios.
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.
Even if they weren't (I have not studied the details), when using NoScript and something does not work you need to enable additional domains. It is infeasible to find the minimal necessary set, so you'll end up with a long allow list.
And an allow list where I’ve made decisions about individual exceptions is a problem why? Do you think having a long list of exceptions is a security problem compared to the entire Internet?
Not talking about a security problem. It's a workload problem for me.
1 reply →
Don't know about noscript specifically, but uMatrix has a default block-list that's safe to enable by default and that includes optimizely. So allowing everything except this default block-list would have protected you from this attack already without any inconvenience of managing allow-lists.
uMatrix is a fail for me. It kills MS Outlook at work even though everything is green.
This is simply incorrect. I still use umatrix. On bloated sites there's typically only one or two key domains that need to be permitted. Once you've been running it for a while you can usually guess which ones are needed based on what the grid of resources looks like. Most third party domains aren't required most of the time even for what you described above as "serious businesses". I block most of the third party resources on my bank's website. Honestly the number of dependencies that they pull in absolutely disgusts me; their online banking interface absolutely chugs on low end devices.
I ran uMatrix as well for a long time, and in general there were very few sites where you had to enable JS across the board.
Was a pain though on eCommerce sites as they'd often switch payment processors and then you had to do the whole dance of partially successful payments until you found the right set of allow lists.
1 reply →
I often do so regularly, and have built up passive knowledge about what shit to enable and what not. Optimizely is very far in the realms of shit not getting enabled. I have not had a single instance of it being useful for me as a visitor or user of a website. It does not serve me and it's trash.
However many will put optimizely and things like that proxying through their domains.