liftoff/GateOne — Issue #15: Session Crashes with colored output
Author: makefu
Created: 2011-10-14 16:43:18+00:00
State: open

When logging into another machine behind the gateone host, color-escapes seem to break the ssh session. Gateone is running under the user "gateone".

Webserver-UI:

Host/IP or SSH URL [localhost]: fuerkrebs
Port [22]:
User: krebs
Connecting to: ssh://krebs@fuerkrebs:22

Could not create directory '/home/gateone/.ssh'.
krebs@fuerkrebs's password:
Linux fuerkrebs 2.6.32-5-486 #1 Sat Jun 11 19:49:29 UTC 2011 i686
KREBS PAINLOAD (MORE COBRA)
x x x x
xx xx xx xx xx xx
xx xx xx xx xx xx
xxx x x xxx
x xxxxxxxxxxxx x
xxxxxxxxxxxxxxxx
x xxxxxxxxxxxx x
x x x x x x
x x x x x x
--
fuerkrebs /krebs ls --color
[[[ Shell crashes here]]

The krebs logo - normally in a red and bold color escape sequence only has the first line printed correctly (reference file: `curl https://github.com/krebscode/painload/blob/master/infest/skel/etc/motd.tail` )

Webserver.log

[I 111014 18:34:31 gateone:339] WebSocket opened (%anonymous)
[E 111014 18:36:10 termio:450] Got BIZARRO exception in proc_read (WTF?): UnicodeDecodeError('ascii', '\xc3', 0, 1, 'ordinal not in range(128)')
[I 111014 18:36:12 gateone:865] ZmFmOGZkMGU1NWY5NGIwMjgyMmY1ZTNhMGVjNWE4MTcyM received quit()... Killing termio session.