Show HN: YouTransfer – Self-hosted file sharing
11–20 of 77 posts
Re: Show HN: YouTransfer – Self-hosted file sharing
#12Earlier quoted context omitted.
Thanks for scrutinising the codebase! You are absolutely right that there is no need for creating a hash. This was just plain laziness on my part. I've created an issue ( https://github.com/remie/YouTransfer/issues/101 ) to change the token generation.
Just to reiterate what dchest said, you should never use MD5 anymore, even if you do intent to hash something. MD5 is is broken and should not be used for anything anymore.
With the possible exception of demonstrating brokenness in hashing algorithms ;) (Sorry, couldn't resist!)
Re: Show HN: YouTransfer – Self-hosted file sharing
#13Earlier quoted context omitted.
Thanks for scrutinising the codebase! You are absolutely right that there is no need for creating a hash. This was just plain laziness on my part. I've created an issue ( https://github.com/remie/YouTransfer/issues/101 ) to change the token generation.
Just to reiterate what dchest said, you should never use MD5 anymore, even if you do intent to hash something. MD5 is is broken and should not be used for anything anymore.
Re: Show HN: YouTransfer – Self-hosted file sharing
#14Re: Show HN: YouTransfer – Self-hosted file sharing
#15If I read it correctly, this is how a file token is generated, which is supposed to be secure: file.id = md5(file.name + (Math.random() * 1000)); First of all please do not use MD5 for anything anymore, it has known collisions. But you shouldn't also use any hash functions here at all: just generate a long enough random token. Math.random is not a secure PRNG, use crypto.randomBytes in Node or window.crypto.getRandom…
Thanks for scrutinising the codebase! You are absolutely right that there is no need for creating a hash. This was just plain laziness on my part. I've created an issue ( https://github.com/remie/YouTransfer/issues/101 ) to change the token generation.
This doesn't seem like a "create an issue on github" problem though. Surely it is a push a patch today problem?
Re: Show HN: YouTransfer – Self-hosted file sharing
#16https://github.com/skx/web-file-publisher
But then as an experiment I wrote another which uses TOTP to authenticate uploads, so you can upload a file directly via CURL with a suitable TOTP device. This is written in golang:
https://github.com/skx/go-experiments/tree/master/publishr
Using TOTP limits compromise if your upload is sniffed, although I run it behind SSL so I'm protected against that regardless.
Interesting project though; and I like that you can deploy it via Docker.
Re: Show HN: YouTransfer – Self-hosted file sharing
#17These kind of projects are a lot of fun. I wrote a simple one, in Ruby, using Sinatra here: https://github.com/skx/web-file-publisher But then as an experiment I wrote another which uses TOTP to authenticate uploads, so you can upload a file directly via CURL with a suitable TOTP device. This is written in golang: https://github.com/skx/go-experiments/tree/master/publishr Using TOTP limits compromise if your upload i…
Re: Show HN: YouTransfer – Self-hosted file sharing
#18Earlier quoted context omitted.
Thanks for scrutinising the codebase! You are absolutely right that there is no need for creating a hash. This was just plain laziness on my part. I've created an issue ( https://github.com/remie/YouTransfer/issues/101 ) to change the token generation.
Good on you for taking the criticism well. This doesn't seem like a "create an issue on github" problem though. Surely it is a push a patch today problem?
EDIT: The 1.0.2 hotfix is now available with the token generation fix as well as 2 other enhancements.
Re: Show HN: YouTransfer – Self-hosted file sharing
#19Earlier quoted context omitted.
Good on you for taking the criticism well. This doesn't seem like a "create an issue on github" problem though. Surely it is a push a patch today problem?
Working on it as we speak! I'm currently running the tests and hope to have a 1.0.2 hotfix ready by lunch. EDIT: The 1.0.2 hotfix is now available with the token generation fix as well as 2 other enhancements.
Re: Show HN: YouTransfer – Self-hosted file sharing
#20Hoes does it compare to Seafile or Owncloud?
The success of services like WeTransfer or Dropbox is that it is dead simple to use. It does one thing (sharing files) and makes this as easy as possible.
Seafile seems to be easy enough, yet still has a multitude of features compared to YouTransfer. OwnCloud simply has a whole different goal. It's not about sharing files, it is about organising your entire cloud presence (with e-mail, calendar, foto's, etc).
With YouTransfer, you can have the same ease-of-use but on your own terms. It runs on your own servers, with your own (secure) storage. You are in full control.
Given that it is also published as an NPM package, YouTransfer can be modified to suit your specific needs. This makes it interesting for companies to rebrand it and use it as their file-sharing system.