From nsayer@quack.kfu.com  Thu Sep 19 13:52:28 1996
Received: from quack.kfu.com (quack.kfu.com [204.147.226.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA12441
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Sep 1996 13:52:26 -0700 (PDT)
Received: from morpheus.kfu.com (morpheus.kfu.com [204.147.226.4]) by quack.kfu.com (8.6.12/8.6.12) with ESMTP id NAA23831 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Sep 1996 13:52:19 -0700
Received: by morpheus.kfu.com 
        (8.7.5//ident-1.0) id NAA01796; Thu, 19 Sep 1996 13:52:18 -0700 (PDT) 
Message-Id: <199609192052.NAA01796@morpheus.kfu.com>
Date: Thu, 19 Sep 1996 13:52:18 -0700 (PDT)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: telnet encryption with char-mode and ascii loses sync
X-Send-Pr-Version: 3.2

>Number:         1650
>Category:       bin
>Synopsis:       telnet encryption with char-mode and ascii loses sync
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 19 14:00:03 PDT 1996
>Closed-Date:    Thu Aug 12 16:31:12 PDT 1999
>Last-Modified:  Thu Aug 12 16:32:06 PDT 1999
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
just me
>Environment:

This bug confirmed in _stock_ 2.2-960801-SNAP. Adding SRA
makes it easier for me to spot it, but kerberos users must
be running into this as well (if there ARE any kerberos
users, that is).

>Description:

Using telnet with encryption, char mode (opposite of line mode) and
netascii (opposite of binary) all on at the same time causes
telnetd-to-telnet stream to lose synchronization. That is, the
output stream turns into garbage.

>How-To-Repeat:

telnet to a host using encryption. Escape to telnet> prompt and type
'mode char'.

You will still be able to type commands and have them be interpreted
properly, but the output will be crypto trash.

>Fix:
	
Clearly there is some bit of either the linemode or netascii stuff that
is sending one or more characters to the other end without encrypting them.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Thu Sep 19 14:13:05 PDT 1996 
Responsible-Changed-Why:  
Got misfiled under gnats-amin 

From: Nick Sayer <nsayer@quack.kfu.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/1650 telnet encryption with char-mode and ascii loses sync
Date: Sun, 22 Mar 1998 16:14:02 -0800 (PST)

 Studded writes:
 > Greetings, :)
 > 
 > 	I am writing to you in regards to your FreeBSD Problem
 > Report. The FreeBSD project is currently conducting a beta test on
 > version 2.2.6 and feedback as to whether you are still experiencing
 > your problem would be very valuable. 
 
 So far as I know, no changes have been made to the code in question in
 a very long time.
 
 
 -- 
 echo afnlre@dhnpx.xsh.pbz |\   : "It's not very likely, but then it
 tr 'a-z' 'n-za-m'              : only had to happen once."
 or remove nospam in From: line :    -- Timothy Ferris
 http://www.kfu.com/~nsayer/    :    on the theory of vacuum genesis
State-Changed-From-To: open->closed 
State-Changed-By: nsayer 
State-Changed-When: Thu Aug 12 16:31:12 PDT 1999 
State-Changed-Why:  
Experiments with SRA on the current /usr/src/crypto/telnet show that 
this bug is no longer reproducable. 
>Unformatted:
