oss-sec mailing list archives
Re: terminal emulators' processing of escape sequences
From: Tavis Ormandy <taviso () cmpxchg8b com>
Date: Fri, 19 May 2017 10:31:34 -0700
Robert Święcki <robert () swiecki net> wrote:
Hi again,2017-05-17 15:56 GMT+02:00 Daniel Kahn Gillmor <dkg () fifthhorseman net>:Please consider the following example: $ tail -n1 /etc/hosts | xxd 00000000: 3132 372e 302e 302e 3309 1b47 513b 205a 127.0.0.3..GQ; Z 00000010: 5a5a 0a ZZ. $ ping ZZZ PING ; (127.0.0.3) 56(84) bytes of data. ^[G0 64 bytes from ; (127.0.0.3): icmp_seq=1 ttl=64 time=0.039 ms ^[G0 64 bytes from ; (127.0.0.3): icmp_seq=2 ttl=64 time=0.032 ms ^[G0 ^C --- ; ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1014ms rtt min/avg/max/mdev = 0.032/0.035/0.039/0.006 ms ^[G0 $ 0 bash: 0: command not foundwhat version of ping are you using? I was unable to replicate this with either the debian iputils-ping package version 3:20161105-1, or with debian inetutils-ping package version 2:1.9.4-2+b1. neither of them seem to do a getnameinfo() at all if it is initially supplied with an IP address.
Browsing through the commands rxvt supports, I noticed you can set arbitrary X11 properties. That seems like the kind of thing some wm or de might trust for soemthing important (like gtk modules, etc). e.g. $ printf "\e]3;%s=TEST\a" TEST_PROPERTY $ xprop -id $WINDOWID TEST_PROPERTY TEST_PROPERTY(UTF8_STRING) = "TEST" The properties Gnome looks at are listed here, maybe you could cause some confusion this way. Do other environments (Xfce, KDE, etc) support more interesting properties? https://wiki.gnome.org/Attic/ApplicationSpecification Tavis.
Current thread:
- Re: terminal emulators' processing of escape sequences, (continued)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 16)
- Re: terminal emulators' processing of escape sequences Yui Hirasawa (May 19)
- Re: terminal emulators' processing of escape sequences Jason A. Donenfeld (May 17)
- Re: terminal emulators' processing of escape sequences Marc Lehmann (May 16)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 17)
- AW: terminal emulators' processing of escape sequences Fiedler Roman (May 17)
- Re: terminal emulators' processing of escape sequences Daniel Kahn Gillmor (May 17)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 17)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 17)
- Re: terminal emulators' processing of escape sequences Daniel Kahn Gillmor (May 18)
- Re: terminal emulators' processing of escape sequences Tavis Ormandy (May 19)
- Re: terminal emulators' processing of escape sequences Solar Designer (May 17)
- Re: terminal emulators' processing of escape sequences Marc Lehmann (May 17)
- rxvt-unicode "insecure" setting [Was: terminal emulators' processing of escape sequences] Ian Zimmerman (May 17)
- Re: terminal emulators' processing of escape sequences Dominique Martinet (May 17)
- Re: terminal emulators' processing of escape sequences Guido Berhoerster (May 03)
- Re: terminal emulators' processing of escape sequences Ryan Munz (May 08)