by dust42 · 8mo ago · 0 comments
printf '\e]8;;http://evil.com\e\\https://good.com\e]8;;\e\\\n'
The next step would be to embedd a full javascript VM in the terminal and a CSS engine. WARNING: This has security implications as it allows malicious URLs
to be shown as another URL or hidden.
Make sure you understand the implications before turning this on.
Then it has an option for you to enter the link schemes you want to enable, like https://, file://, etcOverall, I think the idea is super interesting, especially the ability to encode in the future other context than URLs with it. Whether actually useful, or just gimmicky, remains to be seen.
<a href="http://evil.com">https://good.com</a>The use-cases provided seem to all just be more or less "it's convenient and looks good", which is the last thing I care about in a situation like that.
Though a good terminal should let you control whether you want to render the anchor text, show you the underlying link when you focus/hover/click it, etc.
allow_hyperlinks ask
[1]> It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages
before saying "oh... no.... I hate this. Please don't."
Granted, on its own, this should be safe. But attacks are usually composed from multiple bugs and/or weaknesses in design. Hence why security folk keep talking about “defence in depth” — ie not to rely on the security of any single facet but instead layering your security just in case any one particular layer does prove to be insufficient.
This is why in my own terminal emulator I implemented hyperlinks via user defined RegEx. The terminal user gets to decide what text becomes click-actionable rather than the attacker.
I actually voiced some concerns with this original hyperlink proposal several years back. In fact lots of developers and security researchers did. And the gist authors response was to delete the replies and turn off comments. Which adds additional concern about this proposal. It follows no process, no feedback, nothing. Just one persons mission to dictate how everyone else’s terminal, and security model, should operate.
e.g. "Log in to receive your bitcoin: https://colnbase.com" (phishing)