Package: python-paramiko
Version: 1.7.7.1-3
Severity: normal

If there is a malformed host key in a parsed known_hosts file, paramiko
just returns by an uncatched exception instead of handling this
gracefully (like marking the key as bad and only producing an hard
error if it actually belongs to the host to be connected to).

Example backtrace:

  File "./bin/../dput/uploaders/sftp.py", line 152, in initialize
    self._sshclient.load_system_host_keys(ukhf)
  File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 156, in 
load_system_host_keys
    self._system_host_keys.load(filename)
  File "/usr/lib/python2.7/dist-packages/paramiko/hostkeys.py", line 155, in 
load
    e = HostKeyEntry.from_line(line)
  File "/usr/lib/python2.7/dist-packages/paramiko/hostkeys.py", line 67, in 
from_line
    key = RSAKey(data=base64.decodestring(key))
  File "/usr/lib/python2.7/base64.py", line 321, in decodestring
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

        Bernhard R. Link


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to