1 Vulnerability Overview
Recently, Apache Software Foundation (ASF) issued a security bulletin to announce the fix of the remote arbitrary code execution vulnerability (CVE-2019-0193) in Apache Solr. This vulnerability exists in the DataImportHandler module, a common module used to import data from databases or other sources. The whole DIH configuration of this module can come from the dataConfig parameter included in an external request. As a DIH configuration can contain scripts, this parameter is a security risk.
An attacker could exploit this vulnerability to cause arbitrary code execution via a malicious request that contains a carefully crafted dataConfig parameter. Users of this software are advised to upgrade Apache Solr to a secure version to protect against this vulnerability.
Reference:
https://issues.apache.org/jira/browse/SOLR-13669
2 Scope of Impact
Affected Versions:
- Apache Solr < 8.2.0
Unaffected Versions:
- Apache Solr >= 8.2.0
3 Vulnerability Detection
User can check the current Solr version on the Solr administration dashboard. If the current version is affected and lacks the related protection configuration, this version is vulnerable and users are advised to take protection measures as soon as possible.
4 Mitigation
4.1 Official Fix
Starting with Solr 8.2.0, the use of the dataConfig parameter requires setting the Java system property “enable.dih.dataconfigparam” to “true”. Users can upgrade Solr to 8.2.0 or later to protect against this vulnerability:
Download link: http://lucene.apache.org/solr/downloads.html
4.2 Workaround
- Users can edit solrconfig.xml to configure all DataImportHandler usages with an “invariants” section listing the “dataConfig” parameter set to an empty string.
<str name=”config”></str>
- Ensure that network settings are configured so that only trusted traffic communicates with Solr, especially to the DIH request handler.
Statement
This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.
About NSFOCUS
NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.
NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).
A wholly owned subsidiary of NSFOCUS Information Technology Co. Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.