4 ms·
"Build terminals in the browser" ... and give your passwords there, and type commands. What can go wrong.
by hulitu 5y ago
"Build terminals in the browser" ... and give your passwords there, and type commands. What can go wrong.
- emilfihlman 5y agoRunning in the browser is no more (or less) untrusted than running a dedicated terminal client.
- tyingq 5y agoThat a terminal in the browser can't make ssh connections without a separate http or websocket bridge complicates that. Depends on that bridge and who/how/where it's running.
- rbanffy 5y agoWhen was the last case when a malicious website or script could capture content or keystrokes directed at another tab? Really curious, because it seems an obvious attack vector.
- amalcon 5y ago2018 at the earliest: https://en.wikipedia.org/wiki/Spectre_(security_vulnerability) https://en.wikipedia.org/wiki/Spectre_(security_vulnerabilit... It's not a browser vulnerability per se, but it's still mitigated by having a separate address space.
- colejohnson66 5y agoAt least in the last decade, I don’t think that’s even possible on the “big” browsers. There were vulnerabilities involving <iframe>s, but I don’t know enough about those.
- noergl 5y agoI tend to disagree. The fact, that a browser engine and JS is involved raises the bar significantly during security audits. It brings additional third-party players into the chain you have to trust. Meanwhile I suggest to read https://xtermjs.org/docs/guides/security/ https://xtermjs.org/docs/guides/security/.
- intc 5y agoOf course it is. In most cases you do not have any sort of guarantees regarding the browser (which it self usually is more complex piece of software than all your operating system and it's accessories calculated together - difficult to audit - known to collect metrics etc etc). In addition one can sandbox their local terminal pretty effectively - With Tomoyo or some other MAC technology. It's not so bad idea to actually isolate your browser too (with Mandatory Access Control) - It usually has no business for a global view on your filesystem or local network resources.
- lhnz 5y agoAre terminals better sandboxed when run outside of a browser?
- rbanffy 5y agoUsually yes. They are running in a completely different process than the browser.
- chungy 5y agoDon't be ridiculous. The only and obvious answer to the question is "no" -- the terminal itself and all commands inside it run unimpeded.
- rbanffy 5y agoA malicious website would have a hard time capturing (or injecting) info an OS terminal running on an entirely different process than it would on a browser with imperfect context separation. You clearly misunderstood the issue.
- sime2009 5y agoYou are aware that millions of people use web browsers each day to do their banking, purchase products, and generally run businesses?