Hacker Newsnew | past | comments | ask | show | jobs | submit | thought-gap's commentslogin

This is exactly the kind of use case for NoScript - reduce exposure to potentially malicious content.


Yes. But many, if not most of the affected sites where 100% serious businesses. On those you often have have to enable JS to make the site usable. Some random ad financed site are different stories, there you might just move on.


> 100% serious businesses. On those you often have have to enable JS to make the site usable.

It's not all or nothing. NoScript [0] lets you run JS (and other specific types of content) from domains and/or sub-domains you allow and reject from those you don't. So you'd allow JS from my-serious-business domain and their CDN, and disallow all else, including those mentioned in the linked article.

[0] https://noscript.net/


Sure I know, I tried NoScript in the past.

It would not have helped here. gitlab.com and my bank are on the list. Obviously I could not have blocked them.


> 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.


Every time I buy a new computer, I reset this from scratch and it usually takes me less than seven days to have to set up about one exception every few days at most so I think it’s pretty low maintenance for the benefit.

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.


Agree, it takes about a week to allow like 60% of pages we visit daily. Then over a month the rest of sites that we occasionally visit. Then there are the pages that completely break when we remove the ad js crap, and then you can take a decision on if you want to continue using that site or not. I have also messages a couple of smaller sites that break when you removed googles tracking, because of the order they load JS, and they promptly fixed it.


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.


I enable scripts as needed to get the sites I want to work to work. All others get nothing.

If by serious businesses you mean ones that view the inclusion of megabytes of unvetted JS as a security risk and a failure of engineering, there are few serious businesses.


I don't disagree. The majority are seriously shitty businesses. Can a name a big bank, hotel reservation, airline, you name it that is significantly different in that respect?


I think uMatrix Origin blocks optimizely by default. It's more user friendly than NoScript.


+1

Allows for really easy, selective and contextual permissions for some critical capabilities.


Yes, but unfortunately I allow-listed optimizely some time ago because some sites wouldn't work without it.


This is great. If this was available a few years ago, I would have looked at this and similar projects to see if I should base my personal use service on. Why send your sometimes relatively private info elsewhere to be profiled? Why not have software that solves for your needs?

As is, I have already been running my own service (with no intent to open source) for years where I decide features, tools and UX that suits me. My UX is substantially different from these chat boxes. It is also multi-user by design. It still needs time investment but the tradeoff is worth for me. Over time, I expect this threshold to keep getting lower and increasing percentage of folks to cross it.

Generally, as that happens with the cost and time to build software trending lower, I think it will be interesting to watch how this dynamic evolves. For example, is it possible "personal OS" systems could emerge that solve the users' needs? I have created many smallish solutions for my needs recently, but they aren't unified in any way and I personally don't have a desire to be that [human] OS.


First off, let me get this out of the way - I am not a lawyer. If you want a legal advice talk to a lawyer.

Second, I am sorry this is happening to you.

Third, based on GitHub's reply, specifically

> we're unable to confirm a violation of 17 U.S. Code § 1201

they took your submission as 17 U.S. Code § 1201 takedown notice. Maybe you specifically stated this. Maybe it was implied. This is likely not what you want and GitHub's response is likely correct. The reason for this is that § 1201 prohibits circumventing a technological measure. The JS you host on your public site, even if obfuscated, very likely does not qualify for this protection. Another detail - the reason it took long (a month later according to your post) is that after the youtube-dl fiasco, they committed to manual review, legal and technical, of every 1201 takedown notice [0].

Fourth, if you believe these copies are sufficiently reproducing your copyrighted work, what you likely want to do is file a standard copyright infringement 17 U.S Code § 512(c) takedown notice. This still goes through the same DMCA report flow but it should result in a less stringent review process and a faster response.

Fifth and finally, consider asking your favorite LLM to get more context around these laws. Good luck!

[0] https://github.blog/news-insights/policy-news-and-insights/s...


Indeed, a 512(c) takedown notice is the way to do it. GitHub is extremely unlikely to ignore it. I run user generated content websites and would never ignore a notice. You definitely don't need to hire a lawyer to write it either. Just follow the notification guidelines in 17 U.S Code § 512(c)(3).


This is bad advice. Obfuscated JS qualifies.

1201(a)(3): "As used in this subsection-- to 'circumvent a technological measure' means to descramble a scrambled work, to decrypt an encrypted work, or otherwise to avoid, bypass, remove, deactivate, or impair a technological measure, without the authority of the copyright owner"


Obfuscated JS can be re-hosted as is, and you can probably remove the ads with newly added JS code.


Or just visit the real site and use an ad blocker? Re-hosting it would obviously be copyright infringement.


Ad-blocking breaks the original site. A lot of functionality stops working properly.


Sure, seems only fair that if you can try to block ads, the app can try to detect ad blockers.


The problem is that AI can probably rewrite this JS de novo simply by observing its behavior and without de-obfuscating it.


Or just ask first AI to create specs and another AI to do clean room implementation?


This would be legal, by the way.


I think you would just end up with yet another slopcoded photoshop clone


are they tools to deobfuscate (covered) or just deobfuscated copies (not covered)?


Circumventing a technological measure has been interpreted extremely broadly. Deobfuscation could be covered.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: