News for hackers. Stuff that matters.
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @12:07PM (#19827302)
Instead of enabling studies just click on this link. It installs that specific "study" (hotfix) without installing anything else.

https://storage.googleapis.com/moz-fx-normandy-prod-addons/e...

Re:Update Regarding Add-Ons in Firefox by JamesMcGill on Saturday May 04, 2019 @12:20PM (#19827379)
Hold up there. Before people start clicking and installing random add-on links, how about linking to something official (either from a FF dev, or in a soure repository) that references this URL?
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @12:23PM (#19827395)
So, I just got this url from this HN comment:

https://news.ycombinator.com/item?id=19825921

I'm not clear if they rehosted the XPI or if that's the original mozilla url.

I'm not too worried about it either. The only reason anyone is clicking on this fine link is because firefox only lets you install addons signed by Mozilla. And since the typical signing process gives addons signed by the broken intermediary we can be pretty confident that this wasn't just signed by mozilla, but is the original study.

In general caution about installing software from random links is definitely a good idea though.

Edit: Looks to me like it's an original mozilla url (judging by github comments on mozilla/normandy - I haven't found an official source saying it is official due to lack of continuing to search: https://github.com/mozilla/normandy/pull/1697)

Re:Update Regarding Add-Ons in Firefox by DoctorOetker on Saturday May 04, 2019 @08:08PM (#19830228)
>I'm not too worried about it either. The only reason anyone is clicking on this fine link is because firefox only lets you install addons signed by Mozilla.

unzip *.xpi

nano META-INF/manifest.mf

gives me

Manifest-Version: 1.0

Name: background.js Digest-Algorithms: MD5 SHA1 MD5-Digest: pcBRGwbuhPz06VrGWmAitQ== SHA1-Digest: szDd6YcB3bpF+NusZhEHhmMDi5U=

Name: content.js Digest-Algorithms: MD5 SHA1 MD5-Digest: CGOATrflEiq+QEu1IZlFvQ== SHA1-Digest: ps2bMGGRQdb4E7VOakqQEhJ8M5c=

Name: content.js.map Digest-Algorithms: MD5 SHA1 MD5-Digest: FY98a5hwQKH3g1fKcGK04A== SHA1-Digest: bAzZBP+YQ3EDWUXpqzKcTUw35Y0=

Name: manifest.json Digest-Algorithms: MD5 SHA1 MD5-Digest: eEm4sDKemttFN7G7JeLo0g== SHA1-Digest: 5W8OY1mk3QjECHzHna00iNXo9mM=

Name: experiments/skeleton/api.js Digest-Algorithms: MD5 SHA1 MD5-Digest: 0RBtD2TRmeE30v9+4TxXYA== SHA1-Digest: 2Uq9PO2H1iks/Cb7VAkfGrrD6hA=

Name: experiments/skeleton/schema.json Digest-Algorithms: MD5 SHA1 MD5-Digest: nSzuviuP+VtUvjE4IyIVhQ== SHA1-Digest: W311W+MXcHSsHIVFP15zxGUmQS8=

===

The hashes that certify the integrity of the files are under rigorous protection of ... MD5 and SHA1 (!)

Re:Update Regarding Add-Ons in Firefox by Dylan16807 on Saturday May 04, 2019 @10:27PM (#19830732)
What's your point?

There might be a very difficult preimage attack on MD5.

There's no evidence of a preimage attack on SHA1.

There is absolutely no way you're doing both at once.

Re:Update Regarding Add-Ons in Firefox by floatingatoll on Saturday May 04, 2019 @12:32PM (#19827461)
The blog post linked by this HN post is the official URL for the patch. Any installation method not described there is unofficial DIY, no matter how Mozilla-signed any given version of the XPI is.
Re:Update Regarding Add-Ons in Firefox by nine_k on Saturday May 04, 2019 @01:04PM (#19827708)
Sir, this is Hacker News.
Re:Update Regarding Add-Ons in Firefox by floatingatoll on Saturday May 04, 2019 @01:41PM (#19827934)
Yes, we are all quite advanced enough to footgun ourselves with abandon :) For everyone else, the fix is magically healing their browser without any intervention at all, and some of my high-skilled tech friends haven’t even noticed yet because they’re weekending and this all resolved itself before they realized it. Never underestimate the burden that being an “expert” places on your future time spend.
Re:Update Regarding Add-Ons in Firefox by human20190310 on Saturday May 04, 2019 @01:55PM (#19828033)
That hadn't occurred to me, but the fact that this is occurring on a weekend probably mitigates the impact to organizations that operate Monday-through-Friday.

Sucks for the Mozillans who are scrambling right now though. Hope they get a long weekend to compensate.

Re:Update Regarding Add-Ons in Firefox by floatingatoll on Saturday May 04, 2019 @02:09PM (#19828134)
I have to assume that’s why they focused on releasing a fix first and communicating second, because there was still hope to save everyone before the impact worsened. I hope they’re able to get at least a few hours of rest before Monday.
Re:Update Regarding Add-Ons in Firefox by toyg on Saturday May 04, 2019 @09:14PM (#19830477)
> Sucks for the Mozillans who are scrambling right now though.

I have little sympathy for people who ruined my own life - they push a fix and get feet up, while I'm left to reconfigure all my addons and containers for days.

Re:Update Regarding Add-Ons in Firefox by ChrisSD on Saturday May 04, 2019 @12:26PM (#19827415)
This is true. However it is signed by moz and looking at the source it seems safe enough (the cert is legit). It's just a normal wrapper with the following code added:

    // first inject the new cert
    try {
      let intermediate = "MIIHLTCCBRWgAwIBAgIDEAAIMA0GCSqGSIb3DQEBDAUAMH0xCzAJBgNVBAYTAlVTMRwwGgYDVQQKExNNb3ppbGxhIENvcnBvcmF0aW9uMS8wLQYDVQQLEyZNb3ppbGxhIEFNTyBQcm9kdWN0aW9uIFNpZ25pbmcgU2VydmljZTEfMB0GA1UEAxMWcm9vdC1jYS1wcm9kdWN0aW9uLWFtbzAeFw0xNTA0MDQwMDAwMDBaFw0yNTA0MDQwMDAwMDBaMIGnMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTTW96aWxsYSBDb3Jwb3JhdGlvbjEvMC0GA1UECxMmTW96aWxsYSBBTU8gUHJvZHVjdGlvbiBTaWduaW5nIFNlcnZpY2UxJjAkBgNVBAMTHXNpZ25pbmdjYTEuYWRkb25zLm1vemlsbGEub3JnMSEwHwYJKoZIhvcNAQkBFhJmb3hzZWNAbW96aWxsYS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/qluiiI+wO6qGA4vH7cHvWvXpdju9JnvbwnrbYmxhtUpfS68LbdjGGtv7RP6F1XhHT4MU3v4GuMulH0E4Wfalm8evsb3tBJRMJPICJX5UCLi6VJ6J2vipXSWBf8xbcOB+PY5Kk6L+EZiWaepiM23CdaZjNOJCAB6wFHlGe+zUk87whpLa7GrtrHjTb8u9TSS+mwjhvgfP8ILZrWhzb5H/ybgmD7jYaJGIDY/WDmq1gVe03fShxD09Ml1P7H38o5kbFLnbbqpqC6n8SfU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+e476F1YUgB7SnkDTVpBOnV5vRLz1Si4iJ/U0HUvMUvNJEweXvKg/DNbXuCreSvTEAawmRIxqNYoaigQD8x4hCzGcVtIi5Xk2aMCJW2K/6JqkN50pnLBNkPx6FeiYMJCP8z0FIz3fv53FHgu3oeDhi2u3VdONjK3aaFWTlKNiGeDU0/lr0suWfQLsNyphTMbYKyTqQYHxXYJno9PuNi7e1903PvM47fKB5bFmSLyzB1hB1YIVLj0/YqD4nz3lADDB91gMBB7vR2h5bRjFqLOxuOutNNcNRnv7UPqtVCtLF2jVb4/AmdJU78jpfDs+BgY/t2bnGBVFBuwqS2Kult/2kth4YMrL5DrURIM8oXWVQRBKxzr843yDmHo8+2rqxLnZcmWoe8yQ41srZ4IB+V3w2TIAd4gxZAB0Xa6KfnR4D8RgE5sgmgQoK7Y/hdvd9Ahu0WEZI8Eg+mDeCeojWcyjF+dt6c2oERiTmFTIFUoojEjJwLyIqHKt+eApEYpF7imaWcumFN1jR+iUjE4ZSUoVxGtZ/Jdnkf8VVQMhiBA+i7r5PsfrHq+lqTTGOg+GzYx7OmoeJAT0zo4c=";
      let certDB = Cc["@mozilla.org/security/x509certdb;1"].getService(Ci.nsIX509CertDB);
      certDB.addCertFromBase64(intermediate, ",,");
      console.log("new intermediate certificate added");
    } catch (e) {
      console.error("failed to add new intermediate certificate:", e);
    }

    // Second, force a re-verify of signatures
    try {
      XPIDatabase.verifySignatures();
      console.log("signatures re-verified");
    } catch (e) {
      console.error("failed to re-verify signatures:", e);
    }
Re:Update Regarding Add-Ons in Firefox by lol768 on Saturday May 04, 2019 @12:30PM (#19827438)
Out of interest, what's special about this add-on that allows it to install intermediate certificates like this vs. an add-on that any random dev could write?
Re:Update Regarding Add-Ons in Firefox by ChrisSD on Saturday May 04, 2019 @12:37PM (#19827505)
In the manifest it has a special "experiment_apis":

    "experiment_apis": {
        "skeleton": {
            "schema": "experiments/skeleton/schema.json",
            "parent": {
                "scopes": [
                    "addon_parent"
                ],
                "script": "experiments/skeleton/api.js",
                "paths": [
                    [
                        "experiments",
                        "skeleton"
                    ]
                ]
            }
        }
    }
Only Mozilla can use these on release versions of Firefox. If you want some more details then try here: https://firefox-source-docs.mozilla.org/toolkit/components/e...
Re:Update Regarding Add-Ons in Firefox by denibertovic on Monday May 06, 2019 @09:12AM (#19839077)
Also how can I verify that intermediate certificate? Is that a base64 encoded string?
Re:Update Regarding Add-Ons in Firefox by denibertovic on Monday May 06, 2019 @09:11AM (#19839065)
Where does it say specifically on that page you linked that only Mozilla can use these apis?
Re:Update Regarding Add-Ons in Firefox by AsyncAwait on Saturday May 04, 2019 @12:34PM (#19827477)
It's installed as a study addon, only Mozilla could install these.
Re:Update Regarding Add-Ons in Firefox by lol768 on Saturday May 04, 2019 @12:37PM (#19827506)
> It's installed as a study addon, only Mozilla could install these.

And that gives it access to use `Cc`/Components.classes?

Re:Update Regarding Add-Ons in Firefox by AsyncAwait on Saturday May 04, 2019 @01:21PM (#19827817)
Not familiar with the specifics, just know that Mozilla uses this mechanism to sometimes ship experimental features to a select group of Firefox users that have it enabled and they used it today to issue this hotfix to anyone who has field studies enabled.
Re:Update Regarding Add-Ons in Firefox by ogurechny on Saturday May 04, 2019 @05:32PM (#19829519)
Why can't they just release that certificate for everyone to install on all affected non-recent and derivative builds (like Tor Browser)? Or is the internal certificate storage different from the one that is configurable in settings? Then tell us straight away what file to change, and the community (everyone likes to mention so much) comes up with the ways to patch it much faster than you think.
Re:Update Regarding Add-Ons in Firefox by noisem4ker on Saturday May 04, 2019 @06:49PM (#19829884)
Thanks to this script, I think I just managed to apply the patch to an old Firefox 56 install, whereas the .xpi had no effect.
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @10:25PM (#19830726)
There are other people here who I think would really appreciate details if you still have them.
Re:Update Regarding Add-Ons in Firefox by elebor on Sunday May 05, 2019 @02:31AM (#19831483)
Re:Update Regarding Add-Ons in Firefox by ajross on Saturday May 04, 2019 @12:46PM (#19827577)
OMG. "Don't trust Mozilla to install something on your machine. Click this link instead!"

Has the "privacy" community finally jumped the shark?

Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @12:47PM (#19827585)
To be perfectly clear I trust Mozilla... this link is a link to code signed by Mozilla that I personally didn't even bother to audit because it was signed by Mozilla.

I just don't want to enable shield studies, because it looks to me like they haven't disabled the other shield studies while distributing this fix, and I don't want to install the other shield studies.

Re:Update Regarding Add-Ons in Firefox by derefr on Saturday May 04, 2019 @01:00PM (#19827686)
I think what they're saying is "don't trust someone to push software to your machine that you can't see. Instead, download and study this binary!"
Re:Update Regarding Add-Ons in Firefox by Wowfunhappy on Saturday May 04, 2019 @02:37PM (#19828323)
Yep. Or even if it's not being actively studied, it's being consciously obtained rather than pushed in the background. And I feel relatively safe because of the community's discussion here.
Re:Update Regarding Add-Ons in Firefox by ploxiln on Saturday May 04, 2019 @04:02PM (#19828945)
it's "install known-good software from mozilla"

vs

"whenever mozilla has crazy marketing or security ideas in the future, let them immediately and randomly install whatever, which maybe seems like a good idea for the mythical average user but is probably terrible for you"

Re:Update Regarding Add-Ons in Firefox by arrivance on Saturday May 04, 2019 @02:12PM (#19828152)
Anybody have any hints for someone who tries to install this and gets a connection error?

EDIT: Thanks to HN User gpm for suggesting a possible fix for this [1]. Right-click, save-as the XPI to somewhere on your computer (or use curl, wget or whatever tool of you choice), and then run it within Firefox. That might work (it did in my case).

EDIT 2: Also, interstingly, the blog post does have an update saying "There are a number of work-arounds being discussed in the community. These are not recommended as they may conflict with fixes we are deploying.", so, use at your own caution I guess.

[1]: https://news.ycombinator.com/item?id=19828669

Re:Update Regarding Add-Ons in Firefox by username223 on Saturday May 04, 2019 @12:28PM (#19827429)
You would think they could have linked to that in their blog post, since people who have disabled "studies" have probably done so for a reason. Telemetry is bad enough; even without the "Mr. Robot" thing, there's no way I would let Mozilla randomly push changes to my browser just to see what happens.
Re:Update Regarding Add-Ons in Firefox by andrewshadura on Saturday May 04, 2019 @01:25PM (#19827845)
What’s bad about telemetry?
Re:Update Regarding Add-Ons in Firefox by username223 on Saturday May 04, 2019 @02:29PM (#19828264)
It's just another database collecting unknown information about me ("anonymized" in some way that may be reversible), stored for an unknown length of time, and enabled by default. Just ask. Plenty of people will beta test software for a $20 gift certificate, or even for free, but they should be given a choice.
Re:Update Regarding Add-Ons in Firefox by icebraining on Saturday May 04, 2019 @08:40PM (#19830351)
Mozilla does ask.
Re:Update Regarding Add-Ons in Firefox by zerocrates on Sunday May 05, 2019 @04:08AM (#19831741)
Do they? I seem to remember a great kerfuffle somewhat recently over telemetry being opt-out.

Studies _must_ be opt-out given the amount of users Mozilla says the fix covers, and they're basically a form of telemetry, in their intended use anyway.

Re:Update Regarding Add-Ons in Firefox by kosma on Saturday May 04, 2019 @12:28PM (#19827428)
How do I uninstall this? It doesn't show up anywhere after installation.
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @12:40PM (#19827527)
That's a good question. I'm not sure if there is a better way but I would just delete it from <profile>/extensions. You can find <profile> by going to about:support and looking for "Profile Directory" (6th from the top for me).
Re:Update Regarding Add-Ons in Firefox by SmartCat on Saturday May 04, 2019 @05:01PM (#19829357)
Re:Update Regarding Add-Ons in Firefox by tdurden on Saturday May 04, 2019 @04:39PM (#19829237)
`about:studies` will show active studies and allow you to remove
Re:Update Regarding Add-Ons in Firefox by ContrQ on Saturday May 04, 2019 @04:56PM (#19829330)
I am not sure on others, but it does not show in "about:studies" on mine since I manually added it.
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @06:50PM (#19829889)
Same.
Re:Update Regarding Add-Ons in Firefox by SmartCat on Saturday May 04, 2019 @05:00PM (#19829351)
Re:Update Regarding Add-Ons in Firefox by Doodlebobb on Sunday May 05, 2019 @08:53PM (#19836071)
I unistalled it and my add ons are still working!
Re:Update Regarding Add-Ons in Firefox by fyfy18 on Saturday May 04, 2019 @12:20PM (#19827376)
This works for Firefox on Android too.
Re:Update Regarding Add-Ons in Firefox by RandomBacon on Saturday May 04, 2019 @09:52PM (#19830613)
Thank you. I can also verify this works on FF for Android.
Re:Update Regarding Add-Ons in Firefox by chimpburger on Saturday May 04, 2019 @03:56PM (#19828900)
Install the official beta. This solved the issue for me https://www.mozilla.org/en-US/firefox/beta/all/
Re:Update Regarding Add-Ons in Firefox by _JamesA_ on Saturday May 04, 2019 @12:15PM (#19827338)
Thanks. That was easy.
Re:Update Regarding Add-Ons in Firefox by pleasecalllater on Saturday May 04, 2019 @02:57PM (#19828472)
Please, don't tell people to do this. This way computers get infected. People should know that clicking in a random link posted by an anonymous guy on a forum page is one of the worst things they can ever do.
Re:Update Regarding Add-Ons in Firefox by gpm on Saturday May 04, 2019 @03:46PM (#19828826)
I addressed above (will probably stay above, it's the top reply) about why I felt safe clicking this link myself and think others should too.

You're right that in general training them to listen to anonymous forum posts is less than ideal, but all in all I'd rather they have a working browser. As a side benefit they get to see posts like this that rightly point out you shouldn't trust strangers on the internet too much.

Re:Update Regarding Add-Ons in Firefox by C14L on Saturday May 04, 2019 @02:25PM (#19828244)
Great idea!

Install from a random web link to file on a "cloud" server.

What could possibly go wrong!