Re:Reddit has shut down its nascent cryptocurrency project
by yafujifide on Monday February 02, 2015 @01:11PM
(#8985640)
That has nothing to do with javascript-the-language, but rather the way the web works. Obviously even with https, javascript delivered by a web server has a vulnerability whereby the web server may be compromised, which is outside of the users control. Any javscript delivered by a web server should be executed with that understanding. i.e., delivering a wallet from a web server is probably not the right thing to do. Note that javascript can also be run in the form of a browser extension, server-side node, node-webkit, apache cordova, etc. Javascript-the-language is not intrinsically vulnerable to a compromised webserver.
Re:Reddit has shut down its nascent cryptocurrency project
by Sir_Cmpwn on Monday February 02, 2015 @01:14PM
(#8985658)
It's fair to say that JavaScript-the-language is not intrinsically vulnerable to this, but how else are you planning on delivering the JavaScript to clients? I may be misinterpreting your goals.
Re:Reddit has shut down its nascent cryptocurrency project
by yafujifide on Monday February 02, 2015 @01:29PM
(#8985771)
Not in the form of a webapp. It would have been a browser extension and/or mobile.
Re:Reddit has shut down its nascent cryptocurrency project
by Sir_Cmpwn on Monday February 02, 2015 @01:34PM
(#8985805)
Thanks for clarifying.
Re:Reddit has shut down its nascent cryptocurrency project
by tptacek on Monday February 02, 2015 @01:54PM
(#8985973)
This seems pretty much correct.
Re:Reddit has shut down its nascent cryptocurrency project
by jsprogrammer on Monday February 02, 2015 @06:46PM
(#8987926)
A usable browser implementation of a wallet could be secured fairly well and if it gained any popularity would put pressure on browser makers to deliver better solutions.
Re:Reddit has shut down its nascent cryptocurrency project
by geofft on Monday February 02, 2015 @01:09PM
(#8985628)
That's also true of C with an auto-update framework. That's also true of closed-source C.
There are plenty of ways to avoid that particular trap of JS crypto (or more specifically web crypto). Bundling it inside an extension comes to mind.
All that said, I'm not even convinced this attack is within the threat model of Redditcoin, given that it's resources for a specific website that is also the JS origin.
Re:Reddit has shut down its nascent cryptocurrency project
by matthewmacleod on Monday February 02, 2015 @01:08PM
(#8985619)
That's not really the case - yes, crypto in the browser is possibly nonsense, but crypto under e.g. Node.js is anything but.
Re:Reddit has shut down its nascent cryptocurrency project
by michaelchisari on Monday February 02, 2015 @01:08PM
(#8985620)
We're not talking about client-side javascript, are we? I assumed he meant node.js/server side.
Re:Reddit has shut down its nascent cryptocurrency project
by yafujifide on Monday February 02, 2015 @01:28PM
(#8985761)
Yes exactly. I think people who are not whatsoever involved in the javascript world assume that javscript means "delivered by a webserver", which is just not necessarily true.
Overall I am sympathetic to your cause, but this raises alarms. JavaScript crypto is nonsense, you could have the implementation silently replaced with a naughty one at the hosts leisure.
EDIT: To respond to all of you at once - everything I've seen so far says that he was aiming for JS in the browser. Did I miss something?