[Bug 2500] New: ConnectionAttempts=0 causes ssh to output uninitialised data on stdout

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Nov 19 14:34:26 AEDT 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2500

            Bug ID: 2500
           Summary: ConnectionAttempts=0 causes ssh to output
                    uninitialised data on stdout
           Product: Portable OpenSSH
           Version: 7.1p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: dvw at phas.ubc.ca

Using ssh with ConnectionAttempts set to zero results in the contents
of uninitialised memory being sent to stdout.  For example:

$ ssh -o ConnectionAttempts=0 somehost
ssh: connect to host somehost port \200\335q\002\374\177: Success

Cause:

When ssh_connect_direct() is passed connection_attempts=0, the
strport[] buffer is never initialised, since the whole attempt loop is
skipped.  Its contents are later output in the error message after the
skipped loop (sshconnect.c:485).

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


More information about the openssh-bugs mailing list