oss-sec mailing list archives
Re: terminal emulators' processing of escape sequences
From: Robert Święcki <robert () swiecki net>
Date: Wed, 3 May 2017 15:41:04 +0200
On a slightly different note; memory corruption/abort() problems might end up as RCE with some effort, but what *is* RCE is ability to push back characters into terminal's input buffer. There are some well-known vectors, like setting title of the current terminal and printing it back with ESC codes, and hopefully it's something that is mitigated in all modern terminal emulator software packages for many years now. But, it's not something that can be discovered simply by waiting for SEGV and similar signals. Hence, I'd like to encourage everyone looking for bugs in terminal emulators to add some form of instrumentation to their fuzz setups aimed at finding such problems too. A harmless example from rxvt - pushing back the new-line character: $ echo -ne "\eGQ;" ;$ 0 bash: 0: command not found
For those interested in high-speed terminal emulator fuzzing (typically 300k-700k inputs/sec on a modern i7-6600K), I prepared a short step-by-step guide: https://github.com/google/honggfuzz/tree/master/examples/terminal-emulators -- Robert Święcki
Current thread:
- terminal emulators' processing of escape sequences Solar Designer (May 01)
- Re: terminal emulators' processing of escape sequences Yves-Alexis Perez (May 01)
- Re: terminal emulators' processing of escape sequences Yves-Alexis Perez (May 01)
- Re: terminal emulators' processing of escape sequences Michal Zalewski (May 01)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 01)
- Re: terminal emulators' processing of escape sequences Robert Święcki (May 03)
- Re: terminal emulators' processing of escape sequences Solar Designer (May 16)
- 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 Robert Święcki (May 01)
- Re: terminal emulators' processing of escape sequences Yves-Alexis Perez (May 01)