News for hackers. Stuff that matters.
Re:Firefox Send: Free encrypted file transfer service by timvisee on Tuesday March 12, 2019 @11:11AM (#19368886)
The client encrypts the file that is uploaded, along with some metadata. The key is appended to the share URL provided by the URL, in the fragment/hash, and is never sent to the remote server. Only people having the URL including the secret will be able to download and decrypt your shared file. See https://github.com/mozilla/send/blob/master/docs/encryption....
Re:Firefox Send: Free encrypted file transfer service by bjt2n3904 on Tuesday March 12, 2019 @11:18AM (#19368967)
Thanks for the info. Let me see if I understand this correctly.

Browsers don't send the anchor tag (ie: with GET requests). FF Send takes advantage of this by using the anchor tag to store the key for decryption.

That is kinda novel. You still need to trust the upload client to not leak the key, but I see that you've written a CLI version. Interesting! Thanks for the response.

Re:Firefox Send: Free encrypted file transfer service by timvisee on Tuesday March 12, 2019 @11:31AM (#19369098)
You got it! The only thing you'd have to worry about is malicious JavaScript on the Firefox Send website which I believe would be highly unlikely. And of course, you must keep your link secret.

Yes, such a CLI tool would help protect you against a MITM with malicious JavaScript.

Re:Firefox Send: Free encrypted file transfer service by Piskvorrr on Tuesday March 12, 2019 @01:23PM (#19370633)
Unlikely but possible. Two words: browser extensions.
Re:Firefox Send: Free encrypted file transfer service by quickthrower2 on Tuesday March 12, 2019 @06:42PM (#19373836)
Three words: My Ether Wallet.
Re:Firefox Send: Free encrypted file transfer service by NKCSS on Tuesday March 12, 2019 @11:20AM (#19368982)
It's not a new idea, the megaupload successor first did it as far as I can remember
Re:Firefox Send: Free encrypted file transfer service by simias on Tuesday March 12, 2019 @11:51AM (#19369383)
Indeed, the website serves you the crypto code but it runs totally on the client so it's perfectly safe and could in no way be backdoored.

More seriously, did they do anything to fix this obvious design flaw? If they want to fish a key they can just serve you a modified JS file and retrieve the key. Unless of course you chose to audit the JS served every time you browse the website.

Re:Firefox Send: Free encrypted file transfer service by solarkraft on Wednesday March 13, 2019 @09:05AM (#19378167)
How would this be possible to fix? I currently don't see any possibility of this.
Re:Firefox Send: Free encrypted file transfer service by coolspot on Tuesday March 12, 2019 @07:55PM (#19374291)
Yes, the mega.co.nz . End-to-end encrypted dropbox analog.
Re:Firefox Send: Free encrypted file transfer service by solarkraft on Wednesday March 13, 2019 @09:03AM (#19378155)
It's cool, but not exactly novel. Mega has done it this way for years.
Re:Firefox Send: Free encrypted file transfer service by philsnow on Tuesday March 12, 2019 @12:18PM (#19369790)
Anybody who can catch the link in transit can get the file. Emailing these links with the decryption key right in the fragment is going to allow any party in between the sender and the receiver to fetch the file. (If the file is set to only allow downloading once, the receiver can at least let the sender know that it got intercepted.)

So you have to send the link through some previously-negotiated secure channel. At that point, why not just send the file through that channel? Is it because signal/whatsapp/etc don't allow large files or because the interface is cumbersome?

Re:Firefox Send: Free encrypted file transfer service by Legogris on Tuesday March 12, 2019 @12:29PM (#19369919)
Absolutely. Security and secrecy are not binary, though, it's a spectrum. There are many things where you would mostly want to avoid dragnet attacks and undetected intrusion but don't have concerns for targeted attacks like the one you are describing.

I think this fills the gap for when you want to share not-critically-secret stuff with non-technical people and would today likely send it over something like e-mail, Drive or Dropbox.

Re:Firefox Send: Free encrypted file transfer service by philsnow on Tuesday March 12, 2019 @12:38PM (#19370033)
I don't disagree. I've been thinking about how I would write the announcement copy explaining to non-technical users how the links should also be treated as secret and how email is not encrypted in general. It's a hard problem.
Re:Firefox Send: Free encrypted file transfer service by tialaramex on Tuesday March 12, 2019 @01:40PM (#19370832)
I think it's relatively intuitive for lay users that the links are secret. If you give someone the link, they get the file. What's not obvious about that?

If anything it's probably harder to understand for a somewhat semi-technical person who probably has started to think about encryption and so on but hasn't got far enough to spot that oh - the secret key is in the URL itself as an anchor and so the URL is the secret.

Computer Security is often nicer here than real world physical security, because we are often able to make the extreme cases so implausible as to be irrelevant, enabling intuitive statements to be true in practice rather than subject to endless caveats.

For example a lay person sees a padlock and they imagine that it cannot be opened except with the padlock key. And this is untrue in lots of ways - so a more technical person may think of some of them, and identify that this particular brand of padlock defends against those well, but not realise that other problems are undefended.

So this means the truth about the padlock has to be more nuanced and relative. Breaking the lock open with tools is "difficult". Picking the lock "cannot easily be done in under a minute". But lay people don't like nuanced, relative statements. It sounds a lot like this padlock won't really stop someone stealing my bike! That's because it won't.

But in computer security we often can make these cases irrelevant in practice. What if someone just tries all the key values for this AES encryption? That's fine, there are so many that even if they could try as many as there are grains of sand in the world, every second, the sun would burn out long before they had a meaningful chance of guessing the right one.

Re:Firefox Send: Free encrypted file transfer service by smacktoward on Tuesday March 12, 2019 @03:30PM (#19372030)
It's intuitive for lay users that the links are secret, yes. What lay users have trouble understanding is that putting something in an email automatically makes it not secret.
Re:Firefox Send: Free encrypted file transfer service by SubiculumCode on Tuesday March 12, 2019 @12:39PM (#19370059)
Right. If I were really really concerned one would encrypt it locally then send...which you could do in ff send.
Re:Firefox Send: Free encrypted file transfer service by bjt2n3904 on Tuesday March 12, 2019 @12:23PM (#19369842)
True, but I don't think I'd use this website for anything I'm that concerned about. At that point, I'd encrypt it myself with something like gpg or openssl on the command line.

This fills a handy gap for a lot of people with smaller needs.

Re:Firefox Send: Free encrypted file transfer service by philsnow on Tuesday March 12, 2019 @12:44PM (#19370116)
> I'd encrypt it myself with something like gpg or openssl on the command line.

> This fills a handy gap for a lot of people with smaller needs.

You point out exactly the problem: the people who are technical enough to deal with GPG's UX competently are also technical enough to evaluate whether they should put a particular document through this Send service.

I don't think nontechnical people have "smaller needs".

Re:Firefox Send: Free encrypted file transfer service by timvisee on Tuesday March 12, 2019 @09:18PM (#19374819)
Yes. I would like to add though, that you can set an optional password as well. Without it the link would be useless. You can share it through a different channel.
Re:Firefox Send: Free encrypted file transfer service by air7 on Tuesday March 12, 2019 @11:29AM (#19369071)
That's cool, but it's still the same party providing both the storage mechanism, and the JS that encrypts the content on the client-side. You have to trust them that they are not "peeking" at the keys you are generating using their code in your browser.
Re:Firefox Send: Free encrypted file transfer service by mrmanner on Tuesday March 12, 2019 @11:37AM (#19369169)
But at least you only need to trust them now, and not every incarnation of them in the future =)
Re:Firefox Send: Free encrypted file transfer service by SubiculumCode on Tuesday March 12, 2019 @12:42PM (#19370090)
Not to mention that onr could always encrypt it themselves then use ff send
Re:Firefox Send: Free encrypted file transfer service by jszymborski on Tuesday March 12, 2019 @11:39AM (#19369207)
This is where WebCrypto in browser extensions begins to get interesting, I think.
Re:Firefox Send: Free encrypted file transfer service by jszymborski on Tuesday March 12, 2019 @11:33AM (#19369117)
I use a similar mechanism on my website https://expiring.link

I'm working on documenting the code now before I release on GitHub, but it works on the same premise :)

WebCrypto is mana from the gods...

Re:Firefox Send: Free encrypted file transfer service by srecio on Wednesday March 13, 2019 @08:43PM (#19385478)
Won't most people just share the links over email? With the decryption key in the url I don't see very good security guarantees here