A look at terminal emulators, part 1
A look at terminal emulators, part 1
Posted Apr 20, 2018 8:28 UTC (Fri) by georg.s (guest, #110733)In reply to: A look at terminal emulators, part 1 by anarcat
Parent article: A look at terminal emulators, part 1
As I wrote in my previous comment, the improvement in xterm and vte I'm referring to is the control character filtering (that is enabled, by default):
Implemented in xterm in 2013:
http://invisible-island.net/xterm/xterm.log.html#xterm_292
Implemented in vte in 2015:
https://bugzilla.gnome.org/show_bug.cgi?id=753197
This should protect against:
- escaping from a running `cat > /dev/null` (into a shell) when pasting something into that terminal (i.e. when using that terminal as a paste preview buffer)
- when pasting something into the insert mode of a console vim (running in a terminal), escaping into command mode or the shell
- injecting an end-of-paste-mode sequence in a paste when relying on the terminals bracketed paste mode
See also this Security SE answer: https://security.stackexchange.com/a/52655/42507
