News for hackers. Stuff that matters.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @09:33AM (#5998825)
I submitted a feature request for encryption over this (it's probably vulnerable to MITM attacks as-is, as you never verify the recipient). My request was:

* Generate the URL like sharefest.me/roomid#randomstring

* Sharefest encrypts the file contents before and after transmission with randomstring as key using the SJCL.

* Send the URL/key out of band, over a secure channel.

* Voila, end-to-end crypto.

I don't know if anything became of it, though.

EDIT: Oh, here it is: https://github.com/Peer5/ShareFest/issues/24

Re:An easy way to share files P2P, and how it works by shacharz on Saturday July 06, 2013 @09:40AM (#5998837)
Yea you're right, we just didn't get around to it yet. Thanks for the issue.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @09:46AM (#5998851)
You are quite welcome, hopefully you'll find some time soon, it would make Sharefest the file transfer mode of choice for paranoid people like me :)
Re:An easy way to share files P2P, and how it works by arethuza on Saturday July 06, 2013 @10:08AM (#5998905)
Out of interest, if the decryption is being done in a client by JavaScript, what's stopping a MITM attacker replacing the JavaScript crypto library with something that captures the source URL and key?
Re:An easy way to share files P2P, and how it works by skymt on Saturday July 06, 2013 @10:27AM (#5998947)
That's a well-known problem with JavaScript crypto: http://www.matasano.com/articles/javascript-cryptography/

The short answer is that so long as the page is loaded entirely over TLS, and the TLS isn't stripped or subverted in any way, it's safe from MITM. Sharefest doesn't currently support TLS, so they would need to set that up prior to enabling end-to-end encryption.

Re:An easy way to share files P2P, and how it works by shacharz on Saturday July 06, 2013 @10:37AM (#5998967)
The P2P crypto is done by the browser. But not doubt that we need to load the entire page and scripts securely securely...
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @10:27AM (#5998950)
Nothing (assuming the MITM is someone who can break HTTPS or Peer5 themselves), which is why I proposed this:

https://github.com/Peer5/ShareFest/issues/30#issuecomment-20...

You can download ShareFest, audit it and store it locally so you can run your known-good version. It's just an HTML page and a few JS files (or at least it was, last time I looked).

I was going to create a version of this that was a single webpage and had as little code as possible (for auditability and ease of saving/deployment), but other projects got in the way (plus it's easier to improve ShareFest than write it from scratch).

Re:An easy way to share files P2P, and how it works by 1O0101ll100O on Saturday July 06, 2013 @10:26AM (#5998946)
It's clearly not baseless paranoia anymore.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @10:29AM (#5998955)
That's true, I guess. The funny thing is that the most I ever transfer is family photos and code, but I don't see why anyone should be able to look at even my family photos.
Re:An easy way to share files P2P, and how it works by kimlelly on Saturday July 06, 2013 @11:00AM (#5999026)
The other thing is, as with almost all web-based solutions, you're being tracked by various scripts in the background (Google API/JS, etc.). So, if you're paranoid, you're better off with a client solution.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @12:02PM (#5999167)
Sure, but a client solution doesn't have the ease-of-use of this for the other party. I use Ghostery, incidentally, but your general point is that security on a live webpage is impossible, which I agree with. That's why I proposed that the app be made into a downloadable package as well.
Re:An easy way to share files P2P, and how it works by whadar on Saturday July 06, 2013 @03:48PM (#5999827)
Why downloadable package is necessarily more secure than a live webpage over TLS (HTTPS)? Given that you can verify that Sharefest is Sharefest (using the certificate in the future), I don't see the big difference. I do think that a live webpage can be updated with security fixes more easily.

Being a live webpage also give us, as the developers, much less headaches in terms of protocol compatibility -- We maintain just one "version" of Sharefest client at the same time.

Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @03:56PM (#5999857)
Because a downloadable package can't be replaced by something else the next time you use it, while Sharefest can, and nation-states can easily serve you whatever they want, even over SSL.
Re:An easy way to share files P2P, and how it works by whadar on Saturday July 06, 2013 @04:05PM (#5999894)
But nation-states can do that for downloadable packages as well, perhaps even the verifiers for those packages...
Re:An easy way to share files P2P, and how it works by whadar on Saturday July 06, 2013 @04:49PM (#6000029)
They can spoof the package and its key. If the root of trust (CA) is tempered as you suggest and the chain of trust is broken, I don't see how you can really secure it.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @04:41PM (#6000009)
How?
Re:An easy way to share files P2P, and how it works by shacharz on Saturday July 06, 2013 @12:05PM (#5999176)
It would be interesting to create a self sustained WebRTC client that can communicate with the web version.
Re:An easy way to share files P2P, and how it works by StavrosK on Saturday July 06, 2013 @12:25PM (#5999221)
It already can, the web version is just an HTML file with some JS too.
Re:An easy way to share files P2P, and how it works by kimlelly on Saturday July 06, 2013 @12:23PM (#5999214)
Personally, I don't see a better platform than RetroShare. That is why I believe, we're better off if we all get behind RetroShare:

Developers can extend this platform with as many plugins as they wish - as an open-source solution, it's totally open. (I believe fragmentation, more specifically increasing the number of less advanced solutions doesn't help...)

Re:An easy way to share files P2P, and how it works by spyder on Saturday July 06, 2013 @11:24AM (#5999082)
Client side solutions can do even more tracking because there is no browser sandbox. And for example the µTorrent client has ads in it which are probably tracked.
Re:An easy way to share files P2P, and how it works by kimlelly on Saturday July 06, 2013 @12:04PM (#5999174)
Yes, I suggest using open-source clients that don't include ads (such as RetroShare). µTorrent is not open-source, btw.
Re:An easy way to share files P2P, and how it works by imissmyjuno on Saturday July 06, 2013 @12:24PM (#5999217)
So if the issue is tracking regardless, why not use a non-tracking web app?