4 ms·
This is neat, but it seems like unlike with "real" Magic Wormhole, the server here can capture files by surreptitiously manipulating JS.
by tptacek 7y ago
This is neat, but it seems like unlike with "real" Magic Wormhole, the server here can capture files by surreptitiously manipulating JS.
- Sean-Der 7y agoThere is a native client as well, you don't have to use JS!
- tptacek 7y agoNeat!
- saljam 7y agoAbsolutely true for the web interface if loaded from https://webwormhole.io https://webwormhole.io. I'm open for any more suggestions here! https://github.com/saljam/webwormhole/issues/13 https://github.com/saljam/webwormhole/issues/13 Someone mentioned the command line client. One can also build and serve the html/js/wasm from anywhere and it should still work, even with the same signalling server. It has pretty lax CORS for this reason.
- StavrosK 7y agoIPFS would be a solution here, since the files are content-addressed. You'd have to fetch them locally, since a gateway could still manipulate the content, but it's easier to find a gateway you trust.
- anderspitman 7y agoForgive my ignorance, but how would an IPFS gateway interfere here? If you have the hash of the js file you need, you can verify the gateway gives you the right one, correct? Or are you referring to the case where IPNS is used so the actually content at the address can change?
- StavrosK 7y agoIf you go to the hassle of verifying the hash, yes, that's fine. I was talking about just loading and using the page, which can be tampered with (because the hash checking happens on the gateway).
- mr_toad 7y agoYou can host the code on on your own server if you don’t trust someone else’s. The code is BSD licensed. It should work on a static website like GitHub pages.
- tialaramex 7y agoAlthough of course the people supplying your "real" Magic Wormhole might have surreptitiously altered that software to capture the file too... I think these are similarly likely and have similar (but not identical) mitigations if you're worried you would really be a target for such shenanigans.
- psanford 7y agoHow exactly would they alter the desktop client I installed from a git clone?
- tialaramex 7y agoIf you wrote the client then they couldn't alter it, but then if you wrote the WWH site then they couldn't alter that either, so there's no difference. If you're running code from a clone of somebody's git repo you're vulnerable to anything they did to that code, just as if you're running code from a web site you're vulnerable to anything they did in that site. There are marginal differences, and I'm guessing the one you're really excited about is maybe the web site changes moment-by-moment to introduce and remove betrayal mechanics whereas your git clone doesn't change moment-by-moment. Of course that cuts both ways - bugs can be fixed in the site immediately and your clone doesn't magically get bugfixed. But mostly I'm arguing these are the same problem: Do you trust some well-wisher who has seemingly no reason to betray you? You probably should, life is too short.
- psanford 7y agoI'm worried about incentives and accidents. We've seen chrome plugins get sold to spammers after getting popular. We've seen AWS credentials accidentally leak into git repos. These are cases where the site might be ok one day and start serving something malicious the next. I do think installing a cli tool via your distro's package manager insulates you from these types of risks. I would not let employees at my company use an externally hosted site like this to share secrets. I would have no problem if it were hosted internally by the company.