module

HP Managed Printing Administration jobAcct Remote Command Execution

Disclosed
2011-12-21
Created
2018-05-30

Description

This module exploits an arbitrary file upload vulnerability on HP Managed Printing
Administration 2.6.3 and prior versions. The vulnerability exists in the UploadFiles()
function from the MPAUploader.Uploader.1 control, loaded and used by the server.
The function can be abused via directory traversal and null byte injection in order
to achieve arbitrary file upload. In order to exploit successfully, a few conditions
must be met. First, a writable location under the context of Internet Guest Account
(IUSR_*) or Everyone is required. By default, this module will attempt to write to
/hpmpa/userfiles/, but the WRITEWEBFOLDER option can be used to provide
another writable path. Second, the writable path must also be readable by a browser,
so this typically means a location under wwwroot. Finally, you cannot overwrite
a file with the same name as the payload.

Authors

Andrea Micalizzi
juan vazquez juan.vazquez@metasploit.com

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/windows/http/hp_mpa_job_acct
msf exploit(hp_mpa_job_acct) > show targets
...targets...
msf exploit(hp_mpa_job_acct) > set TARGET < target-id >
msf exploit(hp_mpa_job_acct) > show options
...show and set options...
msf exploit(hp_mpa_job_acct) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.