module

OpenEMR PHP File Upload Vulnerability

Disclosed
2013-02-13
Created
2018-05-30

Description

This module exploits a vulnerability found in OpenEMR 4.1.1 By abusing the
ofc_upload_image.php file from the openflashchart library, a malicious user can
upload a file to the tmp-upload-images directory without any authentication, which
results in arbitrary code execution. The module has been tested successfully on
OpenEMR 4.1.1 over Ubuntu 10.04.

Authors

Gjoko Krstic gjoko@zeroscience.mk
juan vazquez juan.vazquez@metasploit.com

Platform

PHP

Architectures

php

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/unix/webapp/openemr_upload_exec
msf exploit(openemr_upload_exec) > show targets
...targets...
msf exploit(openemr_upload_exec) > set TARGET < target-id >
msf exploit(openemr_upload_exec) > show options
...show and set options...
msf exploit(openemr_upload_exec) > 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.