Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-634

Suspicious read buffer re-use in write command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.2.0
    • None

    Description

      From time to time I saw a Bad packet length ### errors from SSH clients that calls commands to the SSHD server running with Apache SSHD.
      It may turn out there are some issues in the implementation.

      I found one suspicious usage of buffers around org.apache.sshd.common.channel.AbstractChannel#sendResponse method. As far as I see from the code it uses the read buffer as a place to generate a write packet command. Maybe it's worth to create a fresh buffer here to avoid it be updated from the other thread while it is put to a write queue

      Attachments

        Activity

          People

            lgoldstein Lyor Goldstein
            jonnyzzz Eugene Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: