[Bug 2478] Escape sequences (starting with ~) don't work when remote shell is BusyBox ash

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Oct 13 08:18:42 AEDT 2015


Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
   Attachment #2725|                            |ok-
              Flags|                            |

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
Comment on attachment 2725
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2725

>+		if (ch == 0x1B && buf[i+1] == '[') {

If the escape char is the last byte in the buffer then the
control-sequence detection won't work and you'll get an out-of-bounds

Admittedly this is unlikely in regular usage, but certainly possible
for a malicious server and maybe possible by traffic shaping a legit

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list