Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Vulnerabilities / Threats

7/15/2020
04:25 PM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
50%
50%

Vulns in Open Source EHR Puts Patient Health Data at Risk

Five high-risk flaws in health IT software from LibreHealth, a researcher at Bishop Fox finds.

Security researchers from Bishop Fox have discovered several critical vulnerabilities in an emerging open source electronic health record (EHR) system from LibreHealth.

The vulnerabilities give unauthenticated attackers multiple ways to compromise the application's underlying server and gain access to sensitive patient health information and health records, security testing firm Bishop Fox said this week.

The vulnerabilities are present in LibreHealth EHR v2.0.0, an application that healthcare professionals can use to store and access a patient's health records electronically. Bishop Fox discovered the vulnerabilities in February and notified LibreHealth of the issues in March. Bishop Fox disclosed the flaws this week after LibreHealth released what the security firm described as "in-progress patches" for the bugs.

Chris Davis, security consultant at Bishop Fox, says there's no evidence that any of the vulnerabilities have been actively exploited yet. He describes the flaws as presenting a mixed bag from an ease-of-exploit standpoint. "Generally speaking, it's not a high bar for attackers to exploit these issues," Davis says. "The vulnerable software issues contains some known issues that have been around for a while and are well documented, making the likelihood of them being exploited in the wild higher." Davis says he doesn't know how many health records are potentially at risk from these vulnerabilities. 

In a blog post Tuesday, Davis said he had discovered a total of five high-risk flaws in LibreHealth EHR v2.0.0. They consisted of an SQL injection flaw leading to data disclosure; a local file inclusion error that could be used to break into the underlying server; a cross-site scripting error; and a cross-site request forgery issue that gave unauthenticated attackers a way to carry out a variety of attacks. In addition, the LibreHealth EHR app also contained multiple critical vulnerabilities that were inherited when the software was originally forked from the OpenEMR codebase.

The security of systems that are used to electronically store and deliver patient health information has become more important because of the increased use of telehealth services for most non-COVID-19-related health issues.

According to Davis, there has been a recent spike in interest in advisories that Bishop Fox has released in the past on vulnerabilities it has discovered in a variety of healthcare software products such as OpenEMR, SolisMed, Intersystems Cache, and OpenMRS. "All were affected by high-risk issues that could lead to patient data exposure," he says.

Since the beginning of the pandemic earlier this year, security vendors have noted a general increase in attacker interest not just in electronic health systems but in a variety of other services which have seen a recent surge in use. The most heavily targeted among them have been videoconferencing and other communication apps and tools.

Open Source Project
LibreHealth is part of Software Freedom Conservancy, a nonprofit group that helps promote the use of open source software. Several volunteer contributors from multiple open source health IT projects teamed up to form the LibreHealth community in November 2016. Some of the health IT projects that the founding members had previously worked on had thousands of installations worldwide, including within government agencies, nonprofits, and smaller organizations. A statement announcing the launch of LibreHealth described it as focused on building health IT software that would incorporate the best of previous projects.

LibreHealth EHR is one of three projects in which members of the community are currently involved. The other two are LibreHealth Radiology, for use by imaging and radiology professionals, and LibreHealth Toolkit, for creating other healthcare-related software.

Davis says that LibreHealth has not quite released a new version of the app that addresses all of the new identified vulnerabilities. "They've created some pulls in GitHub that address some of the issues but haven't yet merged these fixes into a complete merge and patched version," he says. "The vendor is in contact with us and is working toward the goal of an official patch."

Related Content:

 

 

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio
 

Recommended Reading:

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
tdsan
50%
50%
tdsan,
User Rank: Ninja
7/16/2020 | 6:01:24 PM
Thank you for sharing this information, this is good.

Davis said he had discovered a total of five high-risk flaws in LibreHealth EHR v2.0.0. They consisted of an SQL injection flaw leading to data disclosure; a local file inclusion error that could be used to break into the underlying server; a cross-site scripting error; and a cross-site request forgery issue that gave unauthenticated attackers a way to carry out a variety of attacks.
  • SQL Injection flaw
  • Local file inclusion
  • Cross-Site Scripting
  • Cross-Site request forgery issue (most intrusive)

A good place to start would be the mitre framework to address some of these issues
  • https://attack.mitre.org/techniques/T1190/

Also, I would only allow specific users to access the file (i.e. root or application user - chown dbuser:dbuser /etc/<filename>

Add a firewall on the machine, remove external access to the DB or separate the DB entirely
  • ufw insert 1 allow in proto any from <appip> to <dbip> port 3306 comment "Allow access from this ispecific p"
  • iptables -I INPUT 1 -p tcp -s  <appIp> -d <dbIp> -m multiport --dport 3306 -m conntrack --ctstate NEW -j ACCEPT (logs the entries to the port)

Change the password on the application and DB to ensure they have access, create a docker container to help isolate the traffic (Docker-CE or ContainerD, Docker has adopted ContainerD)

Remove privileged from the DB container, follow NIST and DISA guidelines (Disa stigs)

Test the vulnerabilities using CommandoVM, Nessus, Ninjutsu-OS or others.

Ensure the filesystem is encrypted, perform replication across multiple DB instances
  • show slave status\G; (Mariadb, my preference)
  • show master status\G;

The attach the cluster to sysdig so they can help with the compliance and monitoring (third-party review).

Todd

 
News
Former CISA Director Chris Krebs Discusses Risk Management & Threat Intel
Kelly Sheridan, Staff Editor, Dark Reading,  2/23/2021
Edge-DRsplash-10-edge-articles
Security + Fraud Protection: Your One-Two Punch Against Cyberattacks
Joshua Goldfarb, Director of Product Management at F5,  2/23/2021
News
Cybercrime Groups More Prolific, Focus on Healthcare in 2020
Robert Lemos, Contributing Writer,  2/22/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win an Amazon Gift Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
2021 Top Enterprise IT Trends
We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
Flash Poll
Building the SOC of the Future
Building the SOC of the Future
Digital transformation, cloud-focused attacks, and a worldwide pandemic. The past year has changed the way business works and the way security teams operate. There is no going back.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-20327
PUBLISHED: 2021-02-25
A specific version of the Node.js mongodb-client-encryption module does not perform correct validation of the KMS server&acirc;&euro;&trade;s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in interception of traffic between the Node....
CVE-2021-20328
PUBLISHED: 2021-02-25
Specific versions of the Java driver that support client-side field level encryption (CSFLE) fail to perform correct host name verification on the KMS server&acirc;&euro;&trade;s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in inte...
CVE-2020-27543
PUBLISHED: 2021-02-25
The restify-paginate package 0.0.5 for Node.js allows remote attackers to cause a Denial-of-Service by omitting the HTTP Host header. A Restify-based web service would crash with an uncaught exception.
CVE-2020-23534
PUBLISHED: 2021-02-25
A server-side request forgery (SSRF) vulnerability in Upgrade.php of gopeak masterlab 2.1.5, via the 'source' parameter.
CVE-2021-27330
PUBLISHED: 2021-02-25
Triconsole Datepicker Calendar &lt;3.77 is affected by cross-site scripting (XSS) in calendar_form.php. Attackers can read authentication cookies that are still active, which can be used to perform further attacks such as reading browser history, directory listings, and file contents.