News for hackers. Stuff that matters.
Re:Opera now protects you from cryptojacking attacks by B-Con on Wednesday January 03, 2018 @03:23PM (#16064703)
Opera blog post: https://blogs.opera.com/desktop/2017/12/opera-50-beta-rc-cry...

> After we recently updated the rules for our built-in ad blocker mechanism, we eliminated cryptocurrency mining scripts that overuse your device’s computing ability. Simply enable Opera’s ad blocker to prevent cryptocurrency mining sites from doing their dirty work on your computer.

Looks like a blacklist extension to their ad blocker.

Re:Opera now protects you from cryptojacking attacks by kodablah on Wednesday January 03, 2018 @03:54PM (#16065015)
This isn't going to work I suspect. Ad blockers work because ad companies are too lazy to make appliances/software to embed their ad packages as first party entities. This is exacerbated by the need for third party cookie access. Utilizing client CPU for mining doesn't need that. They can simply embed the JS script (which presumably would have the WASM binary embedded) and go. At least that's how I would do it if I were nefarious. And I'd add significant randomness to prevent pattern matching, but ad blockers are stupid primitive css selector or URL matchers anyways.
Re:Opera now protects you from cryptojacking attacks by Momquist on Wednesday January 03, 2018 @04:30PM (#16065377)
I feel whitelisting JS is becoming the sanest approach, despite all its shortcomings.
Re:Opera now protects you from cryptojacking attacks by ChrisSD on Wednesday January 03, 2018 @06:01PM (#16066275)
I usually prefer to whitelist domains rather than individual scripts. Either I trust a domain enough to serve scripts or I don't, there's rarely a middle ground.
Re:Opera now protects you from cryptojacking attacks by userbinator on Wednesday January 03, 2018 @07:34PM (#16066893)
Indeed, with all the CPU sidechannel attacks that just came out, allowing any untrusted code to run on your machine, even sandboxed in a browser, seems like a horrible idea.
Re:Opera now protects you from cryptojacking attacks by shostack on Wednesday January 03, 2018 @07:33PM (#16066891)
Is there anything comparable to NoScript that works in Firefox Quantum?
Re:Opera now protects you from cryptojacking attacks by KwanEsq on Wednesday January 03, 2018 @07:55PM (#16067016)
NoScript[1] works pretty well.

[1] https://addons.mozilla.org/firefox/addon/noscript/

Re:Opera now protects you from cryptojacking attacks by shostack on Wednesday January 03, 2018 @11:41PM (#16068090)
Huh...for some reason I thought it was not compatible. Ugh, now the only thing holding me back from upgrading is some of my other addons. I hate having to wait forever to upgrade because I use some less popular addons with long update cycles.
Re:Opera now protects you from cryptojacking attacks by Sylos on Thursday January 04, 2018 @02:28PM (#16073281)
It used to not be compatible until a few weeks after the release of Firefox Quantum.

It's also been completely rewritten, so it's not the same NoScript that you know. The new UI definitely takes some getting used to and the dev is still in the process of polishing the new UI. And it's also still missing some features compared to the old version, which the NoScript dev wants to have ready for the next LTS release of Firefox (which is going to be Firefox 60), as that's what Tor Browser will be based on, which needs NoScript. On the other hand, the new version has significantly better performance and also works on Android.

Re:Opera now protects you from cryptojacking attacks by shostack on Thursday January 04, 2018 @05:08PM (#16074543)
Any major features missing?
Re:Opera now protects you from cryptojacking attacks by Sylos on Saturday January 06, 2018 @02:11AM (#16084249)
I think, ClearClick and ABE are still missing. (According to this post [1] from a few weeks ago, they're supposed to be coming in the next few weeks...)

Or well, active content blocking and XSS protection are definitely in there.

[1]: https://hackademix.net/2017/11/21/noscript-1011-quantum-powe...

Re:Opera now protects you from cryptojacking attacks by CannisterFlux on Thursday January 04, 2018 @04:43AM (#16069069)
I ditched a load of addons for Firefox 57. Just embrace the change, find replacements, or move on and stop using them. It's hard, but I found I adapted quite quickly.

For NoScript, even though it is now available, I switched to ublock in medium-mode since NS was delayed until a couple of weeks after 57 hit.

Both ublock and NS now use the same Content-Security-Policy filtering approach (NoScript switched to CSP for the webextension release, ublock did it this way before) and so both now suffer from this bug that means noscript tags are not rendered/parsed at all https://github.com/gorhill/uBlock/issues/308 - so I felt I may as well just use ublock. Full-on global-disallow NoScript with that bug makes many sites completely unusable since their graceful-degraded noscript blocks are not shown, and UI changes in the webextension release made it too fiddly to use IMO.

Re:Opera now protects you from cryptojacking attacks by shostack on Thursday January 04, 2018 @05:38PM (#16074769)
Is there decent mouse gesture support for 57? That's one thing I'm not willing to budge on in terms of ditching old functionality from addons. Mouse gestures have become a way of life for me.
Re:Opera now protects you from cryptojacking attacks by CannisterFlux on Friday January 05, 2018 @03:09AM (#16077287)
Yes, me too. This was more of a pain than NoScript, but after trying a few I switched to "Foxy Gestures" and I'm mostly happy with it. It has right-button+move-in-a-pattern gestures, as well as "chorded" right/left clicks and wheel gestures.

It does have 2 issues - 1st it does not work on special pages due to security restrictions. This means stuff like about:blank, when a page fails to load, preferences pages, and Mozilla's add-on site. There's nothing you can do about this regardless of the gestures add-on you use - life is worse due to security concerns, this is why we can't have nice things, etc.

And 2nd on Linux (maybe Mac too) Foxy Gestures did not work at all by default since the right-click menu triggers on mouse down, not mouse up. That stopped the gesture in their tracks. The FoxyGestures developer mitigated this problem by making right-menu take 2 clicks to trigger as an option enabled by default on Linux, but that can be annoying as now the regular right-click menu doesn't appear when you expect. Fortunately a patch is in Firefox for a future version that adds the option "ui.context_menus.after_mouseup", which makes the right-click menu work like on Windows. Also, a bonus, on Arch Linux the packager backported that preference to Firefox 57, so nice of them, which made everything work almost as well as in the pre-57 days.

Re:Opera now protects you from cryptojacking attacks by Momquist on Wednesday January 03, 2018 @07:53PM (#16067000)
uMatrix, although it doesn't have the various anti-XSS protections of NoScript. But its UI is great, much better than NS IMHO, and it's not limited to script blocking.

https://github.com/gorhill/uMatrix

Re:Opera now protects you from cryptojacking attacks by gorhill on Thursday January 04, 2018 @11:08AM (#16071405)
The dev build support specifically blocking web workers, typically used by cryptominers. So at this point I think it will be a good idea to block web workers by default everywhere, and enable only if a trusted site needs them.
Re:Opera now protects you from cryptojacking attacks by fpoling on Wednesday January 03, 2018 @04:51PM (#16065572)
Well, typically a page does not run heavy calculations for minutes without any input/output. The ad blocker can use that.
Re:Opera now protects you from cryptojacking attacks by kodablah on Wednesday January 03, 2018 @06:25PM (#16066470)
I won't run a closed source ad blocker. Whatever my hypothetical nefarious self sees is the limit which triggers heavy-calc check, I'll just split my insns across requestAnimationFrame/setTimeout just beneath it. The cat-and-mouse game of ad blockers really should be no problem for the adversary (the ad companies) if they just put some thought and engineering into it.
Re:Opera now protects you from cryptojacking attacks by ape4 on Wednesday January 03, 2018 @04:06PM (#16065142)
Mining requires lots of Math.something() functions. Maybe they can set a max for that.
Re:Opera now protects you from cryptojacking attacks by tobyhinloopen on Wednesday January 03, 2018 @04:26PM (#16065331)
You can use other implementations that not require Math.
Re:Opera now protects you from cryptojacking attacks by ape4 on Thursday January 04, 2018 @11:55AM (#16071839)
Just curious... like what?
Re:Opera now protects you from cryptojacking attacks by clouddrover on Wednesday January 03, 2018 @07:15PM (#16066789)
> Looks like a blacklist extension to their ad blocker

In the blog post comments section they say they're using this block list:

https://github.com/hoshsadiq/adblock-nocoin-list

The list is compatible with other blockers like uBlock Origin and Adblock Plus so you can add it to your blocker if you want to.

By default uBlock Origin already includes a Resource Abuse block list which has many of the same entries as this list. I'm not sure how much the two lists overlap, but if uBlock Origin's Resource Abuse list already has all of the entries from this list then obviously there's no gain in adding it.

Re:Opera now protects you from cryptojacking attacks by shostack on Wednesday January 03, 2018 @07:40PM (#16066932)
Is cryptojacking really this common these days? Is there an easy way outside of using these lists to detect if a site is attempting this?
Re:Opera now protects you from cryptojacking attacks by SalimoS on Thursday January 04, 2018 @04:28AM (#16069019)