Exploit database

Vulnerability

CVE-2013-10044

OpenEMR ≤ 4.1.1 SQL Injection Privilege Escalation and RCE

Vulnerability details

Score
8.7
Severity
high

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to extract administrator credentials and subsequently escalate privileges. Once elevated, the attacker can exploit an unrestricted file upload flaw to achieve remote code execution, resulting in full compromise of the application and its host system.

CVE Program

Exploit source choices

3 sources
OpenEMR 4.1.1 Patch 14 SQLi Privilege Escalation Remote Code Execution
MSF-unix--webapp--openemr_sqli_privesc_uploadMetasploitPHP / remote

This module exploits a vulnerability found in OpenEMR version 4.1.1 Patch 14 and lower. When logging in as any non-admin user, it's possible to retrieve the admin SHA1 password hash from the database through SQL injection. The SQL injection vulnerability exists in the "new_comprehensive_save.php" page. This hash can be used to log in as the admin user. After logging in, the "manage_site_files.php" page will be used to upload arbitrary code.

2013-09-16openemr_sqli_privesc_upload.rb