245 points · by testloop · 8y ago · 122 comments
And to preempt the ProtonMail rep who is probably going to respond to this comment, I know that you can run the web app on localhost. But that doesn't mean that users who don't are any more secure.
https://codegolf.stackexchange.com/questions/18217/javascrip...
https://bitbucket.org/geraintluff/caution.js/
The idea is that a long data-uri containing hashes and a small loader function are bookmarked. The loader won't load the corresponding javascript unless the hashes match. The user only needs to verify the javascript once, then they can rely on their bookmark containing the hashes. If the server were to swap out the javascript, the bookmark would fail to load it.
There’s a range of assurances you could try to provide, e.x. signatures from the author (or even 3rd parties), prompting for updates, etc. It would likely require support from browsers.
At one point I investigated using service workers to intercept subsequent app updates to check signatures but there was no way to prevent the service worker itself from being replaced (probably because it would be easy for a site to permanently “brick” itself in users browssr).
Cyph nailed this back with appcaches, later migrating to service workers (and ultimately got a patent for the solution), but the implementation of the solution itself got an entire protocol canned by one browser (HPKP).
Source: did the talk on it.
If you could require the root page be cryptographically signed (but by who?) and optionally prompted for updates then we’re talking.
Unfortunately can't remember the name of the website nor exactly what it did...
- Hack Google
Attack vectors for replacing OpenPGPjs: - Hack the servers hosting OpenPGPjs
- Hack the browser to inject or replace content across domains, sandboxes, other security barriers
It's a subtle difference, but delivering applications dynamically via web browsing is much more precarious than natively hosted applications.Another way to think of it is if your entire Linux OS were actually just web apps with GUIs. Every time you run 'bash', it was actually downloaded from a remote server. And every time you used bash, and it used some plug-in which was hosted on some other site, that plug-in could be compromised, and could be trying to attack your OS, which if successful, would compromise your entire host.
That doesn't happen right now because all the apps sit on your host, aren't constantly re-acquired, aren't constantly subject to potential 3rd party attacks over a wide surface area. Though this does sort-of happen with programming language package managers like npm, pip and so on. But you can pin those versions and hashes if you're paranoid, which I don't think you can do with a browser.
> - Hack Google
- NSL Google
(If you're a high-enough value target and your adversary is the US Government. But in _that_ case you've probably already lost - you might just not know it yet. I wonder if Snowden uses Chrome or lets it autoupdate?)1. Most platforms these days require a signature with a key issued by the platform. In the browser you have HTTPS but that doesn’t help if the server is compromised.
2. It’s easier to target individuals (thus evading detection) if you’re serving the code to users directly (which I think is also the case with Chrome, but not Mac App Store, Linux package managers, etc)
3. Some platforms even do some amount of auditing before including software in their repositories.
You could however probably provide a signed entry point via a webextension or so and a an audit trail via a trusted distribution plattform, like addons.mozilla.org. Are there apps which use a mechanism like this?
Can you not trust the originating site to serve non-compromised HTML if using HSTS and a trusted local certificate store (eliminating MITM as an attack vector)?
It's not clear to me that the Cache API offers the same level of security guarantee.
If the users had the option of "locking" a JS version with the Subresource Integrity attribute that they are currently using, it might help.
(They are both protocols for distributed web apps based on immutable content.)
And also how the same application you are using to encrypt your mail is also running javascript from random sources when you browse websites.
https://github.com/openpgpjs/openpgpjs/blob/master/README.md
[1] https://news.ycombinator.com/item?id=17258203 (please turn on "showdead" in settings, to see the entire thread)
[0]: Plus, it was raised by a competitor, Private Internet Access, so it makes it even more difficult to get the facts straight.
The co-founders of ProtonMail were caught providing multiple inaccurate statements about their business practices in that thread, and couldn't deny any of the facts stated by the co-founder of PIA[1].
Focus on the facts. Not the messenger. Secondly, I admire your love of this discussion [1].
1. You are the user in question that is a co-founder for PIA.
2. You are a direct competitor to Proton*
3. "Messengers", especially in the position of founder of the competitor, have significant bias.
4. You have a fiduciary reason for them to fail.
5. user protonmail has noted significant harassment regarding this issue
Im inclined to distrust both of you. I find that your arguments might have merit. But I also see you as a digital aggressor. I don't particularly like either.> We used Tesonet as a local partner before we had an official Lithuanian subsidiary, and rented office space from them. We don't share employees, infrastructure, etc. We have had a similar temporary arrangements with local companies when we opened offices in other jurisdictions where we didn't have an official presence yet.
This type of arrangement is common in the startup world.
"For the latest project, Tesonet is working together with an international brand from Switzerland to create a security product that helps users protect their network traffic. As part of this technical partnership, we are collaborating on datacenter and network infrastructure that can easily supply 10 Gbps worth of bandwidth to users around the world. The product is developed using the latest authentication encryption methods and the best practices in the security world."
[1] https://web.archive.org/web/20180426161609/https://tesonet.c...
[1] https://www.reddit.com/r/VPNTorrents/comments/90jyoy/heres_w...
[2] https://web.archive.org/web/20180607165926/https://ui.awin.c...
[3] https://web.archive.org/web/20180426151621/http://oxylabs.io...
Eastern Europe is not a jurisdiction.
Tesonet provides all kinds of services, like hosting, software development and cybersecurity for it's customers.
Tesonet's Oxylabs offers "10+ Million Mobile IPs in Every Country and Every City in the World"[1], which might explain why ProtonVPN, whose Android app is signed by Tesonet[2], is a free service. This is how Luminati, Tesonet's largest competitor in Residential Proxies, operates: it provides a free VPN service, Hola VPN, and then connects its users into a botnet[3], which is used for data mining operations.
[1] https://oxylabs.io/proxies/residential-proxies
[2] http://apkforandroid.org/com.protonvpn.android/34007825-prot...
[1] http://litigation.maxval-ip.com/Litigation/DetailView?CaseID...
How would this compare to something like WebCrypto, which assume would be implemented in a way that would allow for side channel resistance etc? It does seem surprising that we don't have something like a browser API version of libsodium in widespread use already.
Is the supposed threat actor a MitM that can use the timing of the packets your browser sends to work out when you stopped typing your email and when the email was sent to the server, allowing them to calculate the time taken by the encryption operation and thus infer something about the plaintext of the email?
Alternatively, is the threat actor someone running JavaScript code in another tab of the same browser, who can infer how much CPU the browser is using at any given time, with enough accuracy to reveal bits of the private key?
Perhaps they are imagining an attacker who could do both, and it would be very interesting to see a practical attack along these lines, but I still think that a decent WebCrypto implementation should make it close to impossible for an attacker to extract any useful information unless the user is sending billions of emails through the ProtonMail web client.
1) No negativity towards your provider reflects on you
2) If your mail provider locks you out you can move to another
Just do a little mental simulation right now of what would happen if gmail or ms/hotmail/etc. locked your account.
https://paragonie.com/audit/L7TtZbFoJBxR91Xg
I didn’t think it was worth it to post to HN as news, though. Perhaps I should start posting our achievements a bit more.
Like for example our Group Rides feature:
Maybe, but don't do it in someone else's thread trying to steal the spotlight from them... Really bad taste.
If anything, the comments saying that they shouldn't be trusted, etc. harm them more than my comment.
Actually my comment should be: I don't think being audited by a third party firm is newsworthy, this is us being audited and we didn't post it.
;)
(Chin up and all that. This is not intended to be in any way hostile.)