News for hackers. Stuff that matters.
Re:Feeling safer online with Firefox by pawadu on Friday January 13, 2017 @10:04AM (#13391294)
I am sure there are people who would love a browser that can control their car or pacemaker and report their bank balance on the welcome page.

But I personally would feel far more secure if there was a firefox-lite where no sensitive stuff (access camera, share screen) were included to start with. And I don't mean turned off by default, I want it removed at compile time.

Re:Feeling safer online with Firefox by sp332 on Friday January 13, 2017 @10:23AM (#13391453)
As mido22 said, the alternative right now is a closed plugin (Flash) or installing software on your computer completely outside of the sandbox. Putting these features in the browser in a controllable way is a step forward. If you don't need them, Firefox is open source and I'm not just saying that to be glib. You can easily grab the source https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g... and compile it with --disable-webrtc https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...
Re:Feeling safer online with Firefox by sp332 on Friday January 13, 2017 @07:10PM (#13395938)
Replying to myself: ok so I just tried this and it's not that easy. The bootstrap script installed a bunch of dependencies but didn't install rust for some reason. Also Ubuntu 14.04 doesn't have the right version of gcc available so you have to get that basically too. The hg clone operation took forever and timed out a few times. Then my computer ran out of RAM during the build and I had to close some programs and start it up again. Pretty much a giant pain, and I don't even want to try Windows where the first step is "install Visual Studio"!
Re:Feeling safer online with Firefox by nmjohn on Friday January 13, 2017 @10:53PM (#13396755)
FWIW, on a fresh ubuntu 16.04 install, this is what needs to be run:

    sudo apt update && sudo apt install python build-essential -y
    wget -O bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py
    cd mozilla-unified/
    ./mach build
Re:Feeling safer online with Firefox by sp332 on Friday January 13, 2017 @11:36PM (#13396905)
That takes care of rust too?
Re:Feeling safer online with Firefox by mintplant on Saturday January 14, 2017 @12:16AM (#13397030)
re: hg clone timeouts, you can download a leaner hg bundle over HTTP and then "unbundle" it:

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...

mozilla-central is just such a big repository that it pushes the usual cloning process to its limits.

The Rust dependency was added to Firefox very recently, so I guess with the holidays it hasn't made it into the bootstrap script and docs yet.

Re:Feeling safer online with Firefox by sp332 on Friday January 13, 2017 @10:15PM (#13396623)
*basically = manually
Re:Feeling safer online with Firefox by pawadu on Friday January 13, 2017 @10:43AM (#13391622)
But I am not familiar enough with the firefox code to do this. I might unknowingly create a whole new set of security issues by changing a few lines in a project of this complexity.
Re:Feeling safer online with Firefox by hackermailman on Friday January 13, 2017 @11:12AM (#13391874)
FF you first start by looking at their long guide for version control/build instructions http://mozilla-version-control-tools.readthedocs.io/en/lates...

Then you make a custom mozconfig file to disable or enable features, or to add your own extensions (ie: windows): https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...

  ac_add_options --disable-activex  
  ac_add_options --disable-activex-scripting
  ac_add_options --disable-installer
  ac_add_options --disable-crashreporter
You can further abstract this with a mozconfig wrapper https://github.com/ahal/mozconfigwrapper

But I agree, I can't find any documentation what exactly every feature is and why you would not want to disable/enable them. The Chromium build process is much more straight forward, or you could just use 3rd party sandbox and regular release FF.

Re:Feeling safer online with Firefox by mintplant on Friday January 13, 2017 @11:30AM (#13392099)
Your first link is misleading because it's targeted toward onboarding new Firefox contributors and includes a Mercurial tutorial and development workflow guide in addition to build instructions. Simple build instructions are here:

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...

On Linux I clone the source and run "./mach build".

Re:Feeling safer online with Firefox by hackermailman on Friday January 13, 2017 @01:34PM (#13393269)
Forgot to add there's a really good page around by the Chrome security team detailing all kinds of functions somebody might wish to remove such as dns lookups that expose your IP (the tails/torbrowser design document also has this list)
Re:Feeling safer online with Firefox by putsteadywere on Friday January 13, 2017 @01:53PM (#13393503)
do you have a link?
Re:Feeling safer online with Firefox by daveFNbuck on Friday January 13, 2017 @10:57AM (#13391733)
The suggestion is that you compile it with a flag to disable the feature. No need to change any lines of code.
Re:Feeling safer online with Firefox by roninb on Friday January 13, 2017 @12:29PM (#13392616)
I think their point is that they don't know enough about the innerworkings (read: code) to be sure that turning off one feature doesn't enable far more security vulnerabilities than existed when the feature was on...

They aren't suggesting using compile flags requires code changes...

Re:Feeling safer online with Firefox by mhurron on Friday January 13, 2017 @10:46AM (#13391642)
So get Firefox back to where it was, just a browser that supported extensions. Everything beyond core browsing should be an extension or plugin.

I have no use for WebRTC, so I would not install the addon/plugin. You may want it, so you would. When there was a problem with Mozilla's implementation, I wouldn't have to care, and neither would anyone else who didn't use or want it. Only those that chose to have the functionality would need to be concerned, and even then it could be updated without a full browser update.

Re:Feeling safer online with Firefox by superkuh on Friday January 13, 2017 @11:14AM (#13391888)
If you want that you can use the Pale Moon browser. It's a very fast, non-bloated, fork of Firefox that has significantly diverged from FF. See https://www.palemoon.org/technical.shtml for details and in particular why they don't support WebRTC.
Re:Feeling safer online with Firefox by gcp on Friday January 13, 2017 @01:36PM (#13393296)
See https://www.palemoon.org/technical.shtml for details and in particular why they don't support WebRTC.

The real reason is that they are based off of an old ESR and their code wouldn't be able to inter-operate with anything else. Aside from the issue that they're not getting security patches for it, either...

The recommendation to use an external PDF reader is also not quite something I can stand behind. (Unless that external reader is Chrome...)

Re:Feeling safer online with Firefox by superkuh on Friday January 13, 2017 @01:42PM (#13393361)
Sounds like your a bit behind that times. Pale Moon 27 is a rebase from FF 38 which has WebRTC. I'm not sure why we should trust your claims, already shown misinformed, when the developer's page states something else. The PM community is basically in consensus in not wanting WebRTC.

As for external PDF readers I'd argue that avoiding the push for integrating or redeveloping more and more external applications into a browser is very sane.

Re:Feeling safer online with Firefox by gcp on Friday January 13, 2017 @01:46PM (#13393417)
rebase from FF 38 which has WebRTC

This is a bit like saying "Firefox 4 has HTML5". The WebRTC stack in Firefox evolved significantly from Firefox 38 to 50, as did the WebRTC standards themselves. That's why I pointed to interoperability issues.

Re:Feeling safer online with Firefox by rebelwebmaster on Friday January 13, 2017 @01:57PM (#13393564)
ESR38 stopped getting upstream security updates from Mozilla in April of 2016. But I'm sure the Palemoon folks have stayed on top of things since.
Re:Feeling safer online with Firefox by ygjb on Friday January 13, 2017 @06:21PM (#13395682)
Recommending Pale Moon to folks who care about security is foolish. There is a much bigger story and a bit of internet drama around it, but essentially, when I asked the Palemoon project lead about their security program on twitter, he blocked me. The claims that they make that they "inherit" Firefox's security properties is not valid as they introduce significant code changes.
Re:Feeling safer online with Firefox by problems on Friday January 13, 2017 @12:11PM (#13392458)
The catch using something like this - while great from many perspectives is that you risk vulnerabilities just due to it not being as popular and as commonly attacked.

So if your threat model includes targeted attacks, where an attacker might invest some (even a small) level of effort to find a 0-day vulnerability, I don't think I'd use it.

Re:Feeling safer online with Firefox by gcp on Friday January 13, 2017 @01:39PM (#13393332)
With Pale Moon the largest risk is that as far as I know the ESR branch they forked away from no longer gets security patches from Mozilla.

So you probably don't need to do effort to find a 0-day, just browse old Mozilla CVE disclosures.

Re:Feeling safer online with Firefox by problems on Friday January 13, 2017 @01:42PM (#13393369)
I'm sure they at least attempt to patch these, but it's often all too easy to screw up a patch and leave some part of the vulnerability still exposed. Look at what happened when Google tried to patch the stagefright vulnerability.
Re:Feeling safer online with Firefox by superkuh on Friday January 13, 2017 @01:44PM (#13393394)
Again with the FUD? I've witnessed the last couple big 0-day discovered by the Tor people were patched in Pale Moon before Mozilla pushed out theirs for Firefox.

edit: I'd reply to your response below normally but apparently I don't get to reply to any comments on HN anymore. The reply button has disappeared. When I log out of my 5 year old/458 karma account it's back. I guess my opinion isn't wanted here.

You have a good point there. I bet a least a couple of those are present. But you've also completely missed my point. When looking through the FF known vuln list the vast majority are for things like WebRTC, WebGl, and other attack surfaces that Pale Moon intentionally avoids.

Re:Feeling safer online with Firefox by gcp on Friday January 13, 2017 @01:57PM (#13393568)
The whole point of my post, which you seem to have completely and utterly missed, was that you don't need 0-days for exploiting Pale Moon. Every single Mozilla CVE published from Firefox 38 to Firefox 50 is potential issue for it. The amount of 0-days in there is exceedingly low, but amount of CVE is very high, because Mozilla publishes CVEs for security bugs they find themselves. AFAIK Google also does this, but Microsoft doesn't.

This isn't FUD. You can literally go read the list:

https://www.mozilla.org/en-US/security/known-vulnerabilities...

I count over 174 fixed vulnerabilities and stopped at version 48. Yes, some of these might not apply to Pale Moon because they're new vulnerabilities or it has the relevant feature disabled. You think anyone did the work to go through them all? Let alone backport the ones that are relevant?

Mozilla used to do this work for Pale Moon by virtue of still backporting the most important ones (i.e. not all) to ESR38. Not any more. Good luck!

the vast majority are for things like WebRTC, WebGl, and other attack surfaces that Pale Moon intentionally avoids

Pale Moon supports WebGL nowadays. It's needed for a few things like Google Maps to not suck. Of course, the implementation is outdated, which is perhaps what made you think it's not there...

Re:Feeling safer online with Firefox by problems on Friday January 13, 2017 @02:06PM (#13393686)
Pale Moon does not completely ignore these though as you seem to be suggesting, they indeed do at least try to patch these.

And I'm betting most of the time they succeed. There may be a few weird ones with edge cases that they've screwed up though and some subset of the vulnerability is still possible.

Re:Feeling safer online with Firefox by temprature on Friday January 13, 2017 @06:45PM (#13395793)
Scroll through Mozilla's security announcements, pick ones at random, find the patch that fixed it and see if it ever got applied to Pale Moon. In many cases they haven't.

I have pointed out many of these and argued with Pale Moon devs about it. "Moon Child" believes they don't need to apply patches if they can't replicate the PoC from Mozilla's bugzilla.

These are things that are obviously vulnerable and need to be fixed (such as missing bound checks in the XML parser).

If someone ever cared enough to target Pale Moon users they would have an absolute field day with all the known Firefox vulnerabilities they could use.

Re:Feeling safer online with Firefox by nitrogen on Friday January 13, 2017 @04:54PM (#13395056)
The reply button has disappeared.

HN delays the visibility of the reply link on threads that seem to be getting too deep too quickly.

Re:Feeling safer online with Firefox by superkuh on Friday January 13, 2017 @01:37PM (#13393306)
At that point you should basically only be using the hardened tor browser based off (currently) Firefox 38. https://blog.torproject.org/blog/tor-browser-65a6-hardened-r...
Re:Feeling safer online with Firefox by dromen on Friday January 13, 2017 @02:21PM (#13393838)
If your threat model includes targeted attacks I'd have serious doubts even about using Curl.
Re:Feeling safer online with Firefox by niftich on Friday January 13, 2017 @12:54PM (#13392833)
This ship has sailed, because pushing the Web Platform (which every year exposes more and more of this platform functionality in JS) is a vested interest of Google and Mozilla, for different but related-enough reasons to where they rapidly achieve parity.

You're going to have to dig up a browser whose authors don't subscribe to this vision, or browsers that may intend to do this down the road but haven't caught up yet. For the time being, out of graphical browsers, Dillo and Netsurf are in this category.

Re:Feeling safer online with Firefox by gcp on Friday January 13, 2017 @01:34PM (#13393274)
I feel far more secure doing a video call with Firefox and WebRTC than I do with the alternatives.
Re:Feeling safer online with Firefox by mido22 on Friday January 13, 2017 @10:13AM (#13391373)
I disagree, I trust WebRTC enough for camera and screen access, the one real issue might be, it exposes your local ip
Re:Feeling safer online with Firefox by Noseshine on Friday January 13, 2017 @10:17AM (#13391405)
It seems uBlock Origin has a setting (right on the main settings page) that can prevent the local IP to be leaked: https://github.com/gorhill/uBlock/wiki/Prevent-WebRTC-from-l...

You can test it here: https://browserleaks.com/webrtc

I tried that test page with the mentioned setting 1) enabled and 2) disabled. I did not see my local IP on 1), I did get see it reported with 2) - so it seems the block works. NOTE: Whether uBlock Origin was enabled for the specific page did not matter, the WebRTC block setting seems to be global and independent of whether the extension blocks anything else on the site.

Re:Feeling safer online with Firefox by the8472 on Friday January 13, 2017 @01:34PM (#13393272)
> And I don't mean turned off by default, I want it removed at compile time.

Many features can be turned off globally in about:config in a way that will not result in an opt-in prompt and will also reduce the javascript API surface.

Is that not good enough?

Re:Feeling safer online with Firefox by Groxx on Friday January 13, 2017 @04:45PM (#13394975)
I'd imagine that the closest we have right now would be something like the Tor browser bundle. IIRC some things are outright removed, but many others are just disabled by default.
Re:Feeling safer online with Firefox by agumonkey on Friday January 13, 2017 @11:19AM (#13391957)
Let's patch dillo and make it an HTTP static document reader, and embed lua for everything else.
Re:Feeling safer online with Firefox by agumonkey on Friday January 13, 2017 @01:14PM (#13393050)
Don't downvote or I'll do it out of spite :)
Re:Feeling safer online with Firefox by ape4 on Friday January 13, 2017 @11:07AM (#13391840)
This is a good point. Is there just a global variable? allowCameraAccess = false;
Re:Feeling safer online with Firefox by sp332 on Friday January 13, 2017 @11:33AM (#13392137)
Yup, there are instructions on this test page: https://browserleaks.com/webrtc#webrtc-disable