2 ms·
I don't get the threat model. You're trying to protect the websocket against possible mitm, but you're doing it using client script downloaded without security
by viraptor 10y ago
I don't get the threat model. You're trying to protect the websocket against possible mitm, but you're doing it using client script downloaded without security over a similar route that you have to also assume is mitm'ed. So basically all the attacker need to do is replace your script with some alternative copy that either exposes the keys or mirrors the whole steam to the attacker endpoint.
Am I missing anything?
- Piskvorrr 10y agoVarious other security holes. But indeed, this by itself is insecure enough. https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/august/javascript-cryptography-considered-harmful/ https://www.nccgroup.trust/us/about-us/newsroom-and-events/b...