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

OpenEMR 4.1.0 Local File Inclusion / Command Execution

OpenEMR 4.1.0 Local File Inclusion / Command Execution
Posted Feb 2, 2012
Authored by High-Tech Bridge SA | Site htbridge.com

OpenEMR version 4.1.0 suffers from local file inclusion and arbitrary command execution vulnerabilities.

tags | exploit, arbitrary, local, vulnerability, file inclusion
SHA-256 | aeb45ca876c22fbb0b013302962406c9de617641da105d221405ecc194efebf2

OpenEMR 4.1.0 Local File Inclusion / Command Execution

Change Mirror Download
Advisory ID: HTB23069
Product: OpenEMR
Vendor: OEMR
Vulnerable Version: 4.1.0 and probably prior
Tested Version: 4.1.0
Vendor Notification: 11 January 2012
Vendor Patch: 29 January 2012
Public Disclosure: 01 February 2012
Vulnerability Type: Local File Inclusion, Arbitrary Command Execution
Solution Status: Fixed by Vendor
Risk Level: High
Credit: High-Tech Bridge SA Security Research Lab ( https://www.htbridge.ch/advisory/ )

----------------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in OpenEMR, which can be exploited to perform local file inclusion and arbitrary command execution attacks.

1) Multiple Local File Inclusion vulnerabilities in OpenEMR

1.1 Input passed via the "formname" GET parameter to /contrib/acog/print_form.php is not properly verified before being used to include local files.
This can be exploited to include local files via directory traversal sequences and URL-encoded NULL bytes.

The following PoC (Proof of Concept) demostrates the vulnerability:

http://[host]/contrib/acog/print_form.php?formname=../../../etc/passwd%00

1.2 Input passed via the "formname" GET parameter to /interface/patient_file/encounter/load_form.php, /interface/patient_file/encounter/view_form.php and /interface/patient_file/encounter/trend_form.php is not properly verified before being used to include local files.
This can be exploited to include local files via directory traversal sequences and URL-encoded NULL bytes.

The following PoC (Proof of Concept) demostrate the vulnerabilities:

http://[host]/interface/patient_file/encounter/load_form.php?formname=../../../etc/passwd%00
http://[host]/interface/patient_file/encounter/view_form.php?formname=../../../etc/passwd%00
http://[host]/interface/patient_file/encounter/trend_form.php?formname=../../../etc/passwd%00

Successful exploitation of these vulnerabilities requires that the attacker is registered and logged-in.

2) Multiple Arbitrary Command Execution vulnerabilities in OpenEMR

Input passed via "file" parameter to /interface/fax/fax_dispatch.php is not properly sanitised before being used in an "exec()" call.
This can be exploited to execute arbitrary system commands.

The following PoC (Proof of Concept) demostrates the vulnerability:

http://[host]/interface/fax/fax_dispatch.php?file=1%22%20||%20ls%20%3E%20123

Successful exploitation of this vulnerability requires that the attacker is registered and logged-in.

----------------------------------------------------------------------------------------------------

Solution:

Apply Vendor Patch: http://www.open-emr.org/patch/4-1-0-Patch-7.zip
More information: http://www.open-emr.org/wiki/index.php/OpenEMR_Patches

----------------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23069 - https://www.htbridge.ch/advisory/HTB23069 - Multiple vulnerabilities in OpenEMR.
[2] OpenEMR - http://www.open-emr.org/ - OpenEMR is a Free and Open Source electronic health records and medical practice management application.

----------------------------------------------------------------------------------------------------

Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    53 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 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