Lurker News

Comments (203) 34 threads

Earlier comments
krz81 reply#
To solve this, [...use Service Workers] to install some code which can't be changed without setting off a warning to you.

How does that work? Isn't a service worker started by plain JS code?

twiss1 reply#
Yes, it is, but after that, it stays installed and runs before you open the web app the next time. In effect, this makes it trust-on-first use, just like if you'd install a desktop app which then had some secure update mechanism.
woranl1 reply#
Can service worker’s code ever be updated by the hacker? How does this actually work?
twiss13 replies#
Yes, it can, but whenever the Service Worker's code changes, the user is warned. There's an "updatefound" event [1] which both the web page and the old Service Worker get. I wrote a blog post with more background info at [2].

Of course, it would be better to only warn the user if the Service Worker changes if it doesn't match the version on GitHub, but that's blocked on [3].
Furthermore, there are some very edge-case situations where the Service Worker can update when Airborn OS is not open or not visible (e.g., in a hidden iframe [4]). That is why, when you register and check "Notify me before updating Airborn OS", it asks you for permission to send you notifications. Those notifications are currently only used to warn you when the Service Worker updates.
[1]: https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegi...
[2]: http://blog.airbornos.com/post/2017/08/03/Transparent-Web-Ap...
[3]: https://github.com/w3c/ServiceWorker/issues/1208
[4]: https://bugs.chromium.org/p/chromium/issues/detail?id=773307, but it's not a browser bug. I should file a spec bug, but I'm still waiting for a reply on [3], too.

Continue this thread — 13 replies

morganvachon1 reply#
It breaks the back button (stuck in a reloading loop). That alone is enough to make me move on, regardless of the potential privacy benefits.
twiss1 reply#
Yeah, it does that in Firefox, sorry about that. It works in Chrome.
morganvachon#
Hopefully you can get it fixed in other browsers. My apologies for this, but I find it amusing that a Google services alternative works better in a Google provided browser. :-)
EGreg1 reply#
"We (the makers of Airborn OS) won't be able to read them even if we wanted to."

I take such claims with a huge grain of salt on the web. YOU serve the Javascript. YOU can change it at any time to phone home what I wrote. No point in trying to change it with the Web alone - that's how it's designed. The server must be trusted at all times.

EGreg1 reply#
That's interesting, but you're plugging holes in a waterfall I think.

For example, that first visit which installs the service worker can already deliver bad code.
Not saying you will do it, but it all relies on people trusting you not to do it. So statements like "we CAN'T read your stuff" are not true on the web. Luckily, most web users don't care about being hacked by the server - they care about owning their own data! :)

twiss3 replies#
> For example, that first visit which installs the service worker can already deliver bad code.

Yes, but that is also the case when you install a desktop app. That's why Airborn OS is open source, so that you can inspect the code.

Continue this thread — 3 replies

wybiral1 reply#
As for the crypto, am I correct in seeing that it uses PBKDF2 to derive an AES key from their password. And then it uses SJCL's encrypt/decrypt methods?
twiss1 reply#
Yes, that's correct. Unless Web Crypto is available, in which case it uses that.
mr_toad1 reply#
How does password / key recovery work?
twiss#
When you create an account, it downloads a file which contains

- Your username
- Your password, encrypted with a random key.
That random key (but not your encrypted password) is sent to the server. When you request a password recovery, we send you a file by email which contains that key and with which you can decrypt your password.
That way,
- We don't have your encrypted password
- A random person / application can't grab your password from your computer
- We verify that it's you who wants a password recovery (by sending you an email).

Load more comments