OpenEMR Vulnerable to Critical SQL Injection

Information

Advisory by Netsparker (now Invicti)
Name: SQL Injection Vulnerability in OpenEMR
Software: OpenEMR 4.1.0 and possibly below.
Vendor Homepage: http://www.open-emr.org
Vulnerability Type: SQL Injection
Severity: Critical
Researcher: Canberk Bolat
Advisory Reference: NS-12-001

Description

OpenEMR is a Free and Open Source electronic health records and medical practice management application. OpenEMR is ONC Complete Ambulatory EHR certified and features fully integrated electronic health records, practice management, scheduling, electronic billing, and internationalization.

Details

OpenEMR is affected by a SQL Injection vulnerability in version 4.1.0.
Example PoC url is as follows :

http://example.com/interface/login/validateUser.php?u='%2b(SELECT%201%20FROM%20(SELECT%20SLEEP(25))A)%2b'

For more information, read the section SQL injection.

Solution

The vendor released a patch for this vulnerability. Please see the references.

Credits

It It has been discovered on testing of Invicti’s Web Application Security Scanner.

References

  1. Vendor Url / Patch: http://www.open-emr.org/wiki/index.php/OpenEMR_Patches
  2. MSL Advisory Link: /sql-injection-vulnerability-in-openemr/
  3. Invicti Advisories: /web-applications-advisories/

About Invicti

Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.