From solr-user-return-142310-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Jul 4 18:56:43 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AA9CE180608 for ; Wed, 4 Jul 2018 18:56:42 +0200 (CEST) Received: (qmail 4976 invoked by uid 500); 4 Jul 2018 16:56:40 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 4870 invoked by uid 99); 4 Jul 2018 16:56:40 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2018 16:56:40 +0000 Received: from VEGA (p4FC8B45A.dip0.t-ipconnect.de [79.200.180.90]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 3B4867D9; Wed, 4 Jul 2018 16:56:38 +0000 (UTC) From: "Uwe Schindler" To: , , , Cc: "'security'" , Subject: [SECURITY] CVE-2018-8026: XXE vulnerability due to Apache Solr configset upload (exchange rate provider config / enum field config / TIKA parsecontext) Date: Wed, 4 Jul 2018 18:56:35 +0200 Message-ID: <0cdc01d413b7$f97ba580$ec72f080$@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: de Thread-Index: AdQTt7EH63+O1TMZSbOqqFPB4d9m8A== CVE-2018-8026: XXE vulnerability due to Apache Solr configset upload (exchange rate provider config / enum field config / TIKA parsecontext) Severity: High Vendor: The Apache Software Foundation Versions Affected: Solr 6.0.0 to 6.6.4 Solr 7.0.0 to 7.3.1 Description: The details of this vulnerability were reported by mail to the Apache security mailing list. This vulnerability relates to an XML external entity expansion (XXE) in = Solr config files (currency.xml, enumsConfig.xml referred from schema.xml, TIKA parsecontext config file). In addition, Xinclude functionality = provided in these config files is also affected in a similar way. The = vulnerability can be used as XXE using file/ftp/http protocols in order to read arbitrary local files from the Solr server or the internal network. The = manipulated files can be uploaded as configsets using Solr's API, allowing to = exploit that vulnerability. See [1] for more details. Mitigation: Users are advised to upgrade to either Solr 6.6.5 or Solr 7.4.0 releases = both of which address the vulnerability. Once upgrade is complete, no other = steps are required. Those releases only allow external entities and Xincludes = that refer to local files / zookeeper resources below the Solr instance = directory (using Solr's ResourceLoader); usage of absolute URLs is denied. Keep in mind, that external entities and XInclude are explicitly supported to = better structure config files in large installations. Before Solr 6 this was no problem, as config files were not accessible through the APIs. If users are unable to upgrade to Solr 6.6.5 or Solr 7.4.0 then they are advised to make sure that Solr instances are only used locally without = access to public internet, so the vulnerability cannot be exploited. In = addition, reverse proxies should be guarded to not allow end users to reach the configset APIs. Please refer to [2] on how to correctly secure Solr = servers. Solr 5.x and earlier are not affected by this vulnerability; those = versions do not allow to upload configsets via the API. Nevertheless, users = should upgrade those versions as soon as possible, because there may be other = ways to inject config files through file upload functionality of the old web interface. Those versions are no longer maintained, so no deep analysis = was done. Credit: Yuyang Xiao, Ishan Chattopadhyaya References: [1] https://issues.apache.org/jira/browse/SOLR-12450 [2] https://wiki.apache.org/solr/SolrSecurity ----- Uwe Schindler uschindler@apache.org=20 ASF Member, Apache Lucene PMC / Committer Bremen, Germany http://lucene.apache.org/