Re:Firefox Send: Free encrypted file transfer service
by dchest on Tuesday March 12, 2019 @05:36PM
(#19373303)
In a browser, the server serving the JS has an opportunity to access the keys.
Re:Firefox Send: Free encrypted file transfer service
by anon4242 on Wednesday March 13, 2019 @02:44PM
(#19382044)
This is the case with all E2EE tools. You have to trust that they do their crypto correct and that they aren't evil. As Firefox Send is open source you can setup your own server if you don't trust Mozilla, but then again, if you don't trust Mozilla you might want to eyeball their code carefully first...
Re:Firefox Send: Free encrypted file transfer service
by dchest on Wednesday March 13, 2019 @05:08PM
(#19383801)
Your description is very simplistic, but yes, you have to trust the code that's delivered to you. For example, no Android/iOS user would check every single update to E2EE apps they install for backdoors. However with web, there's an opportunity for a backdoor in every single request and the server can ship different code to different users. In my opinion, using web cryptography is still worth it, but it's definitely more risky than native apps.
Re:Firefox Send: Free encrypted file transfer service
by wereHamster on Wednesday March 13, 2019 @04:32AM
(#19376783)
subtlecrypto has API to generate a keypair that you can't extract and access from the JS side. You can only use it to encrypt/decrypt buffers, but not access the key itself.
Re:Firefox Send: Free encrypted file transfer service
by dchest on Wednesday March 13, 2019 @09:07AM
(#19378186)
Sure, but having access to encryption/decryption/key derivation is pretty much equivalent to having the key in most circumstances. Plus, JS generates the key and sets "extractable" flag.
Re:Firefox Send: Free encrypted file transfer service
by skrebbel on Wednesday March 13, 2019 @01:51AM
(#19376088)
And how does that work with Firefox Send? Isn't the key somehow in the payload or the URL?
Re:Firefox Send: Free encrypted file transfer service
by anon4242 on Wednesday March 13, 2019 @03:31PM
(#19382679)
Without knowing almost anything about Firefox Send, it does seem that the key is embedded in the link you give to your friends. In that case E2E means that the key is not stored on the server. In order to guarantee that, the link is probably in two parts, one that identifies the file on the server and one is the key. The key part of the link is probably generated on your machine and thus never sent to the server (to prevent it being in any logs or what not). So if Mozilla's servers are compromised the attacker still would not be able to decrypt your files. Of course if the server is compromised the attacker could serve up malicious JS for future uploads.
This is only true if the server has access to the keys of your data. E2EE typically means that it doesn't, only you do.