Wichtiger Sicherheitshinweis: Parsen von nicht vertrauenswürdigen Microsoft Office-Dateien mit „Solr Cell“
Das Lucene PMC hat eine wichtige Sicherheitsmitteilung herausgegeben, in der es darum geht, dass einige Solr-Benutzer durch kürzlich behobene Schwachstellen(CVE-2014-3529 und CVE-2014-3574) in Apache POI – einer Open-Source-Bibliothek zum Parsen von Microsoft-Dateiformaten – verwundbar sein könnten.
Diese Schwachstellen können alle Solr-Benutzer betreffen, die ExtractingRequestHandler
(auch bekannt als„Solr Cell„) aktivieren, um Dateien aus nicht vertrauenswürdigen Quellen zu analysieren. Eine in böser Absicht erstellte OpenXML-Datei könnte übermäßig viele Rechenressourcen verbrauchen, was zu einem DoS-Angriff führen könnte, oder sensible Details in Dateien preisgeben, auf die der effektive Laufzeitbenutzer des Solr-Servers Zugriff hat.
„Hot Fix“-Anweisungen zum Upgrade der betroffenen Apache POI Jar-Dateien in Solr 4.8.0, 4.8.1 und 4.9.0 wurden auf der Solr-Website veröffentlicht. In den nächsten Wochen wird eine neue Version von Solr veröffentlicht werden, die auch die korrigierten Jars enthält.
Alle Details aus der E-Mail mit der Lucene PMC-Ankündigung…
Date: Tue, 19 Aug 2014 01:33:55 +0200 Subject: [ANNOUNCE] [SECURITY] Recommendation to update Apache POI in Apache Solr 4.8.0, 4.8.1, and 4.9.0 installations Hallo Apache Solr Users, the Apache Lucene PMC wants to make the users of Solr aware of the following issue: Apache Solr versions 4.8.0, 4.8.1, 4.9.0 bundle Apache POI 3.10-beta2 with its binary release tarball. This version (and all previous ones) of Apache POI are vulnerable to the following issues: = CVE-2014-3529: XML External Entity (XXE) problem in Apache POI's OpenXML parser = Type: Information disclosure Description: Apache POI uses Java's XML components to parse OpenXML files produced by Microsoft Office products (DOCX, XLSX, PPTX,...). Applications that accept such files from end-users are vulnerable to XML External Entity (XXE) attacks, which allows remote attackers to bypass security restrictions and read arbitrary files via a crafted OpenXML document that provides an XML external entity declaration in conjunction with an entity reference. = CVE-2014-3574: XML Entity Expansion (XEE) problem in Apache POI's OpenXML parser = Type: Denial of service Description: Apache POI uses Java's XML components and Apache Xmlbeans to parse OpenXML files produced by Microsoft Office products (DOCX, XLSX, PPTX,...). Applications that accept such files from end-users are vulnerable to XML Entity Expansion (XEE) attacks ("XML bombs"), which allows remote hackers to consume large amounts of CPU resources. The Apache POI PMC released a bugfix version (3.10.1) today. Solr users are affected by these issues, if they enable the "Apache Solr Content Extraction Library (Solr Cell)" contrib module from the folder "contrib/extraction" of the release tarball. Users of Apache Solr are strongly advised to keep the module disabled if they don't use it. Alternatively, users of Apache Solr 4.8.0, 4.8.1, or 4.9.0 can update the affected libraries by replacing the vulnerable JAR files in the distribution folder. Users of previous versions have to update their Solr release first, patching older versions is impossible. To replace the vulnerable JAR files follow these steps: - Download the Apache POI 3.10.1 binary release: http://poi.apache.org/download.html#POI-3.10.1 - Unzip the archive - Delete the following files in your "solr-4.X.X/contrib/extraction/lib" folder: # poi-3.10-beta2.jar # poi-ooxml-3.10-beta2.jar # poi-ooxml-schemas-3.10-beta2.jar # poi-scratchpad-3.10-beta2.jar # xmlbeans-2.3.0.jar - Copy the following files from the base folder of the Apache POI distribution to the "solr-4.X.X/contrib/extraction/lib" folder: # poi-3.10.1-20140818.jar # poi-ooxml-3.10.1-20140818.jar # poi-ooxml-schemas-3.10.1-20140818.jar # poi-scratchpad-3.10.1-20140818.jar - Copy "xmlbeans-2.6.0.jar" from POI's "ooxml-lib/" folder to the "solr-4.X.X/contrib/extraction/lib" folder. - Verify that the "solr-4.X.X/contrib/extraction/lib" no longer contains any files with version number "3.10-beta2". - Verify that the folder contains one xmlbeans JAR file with version 2.6.0. If you just want to disable extraction of Microsoft Office documents, delete the files above and don't replace them. "Solr Cell" will automatically detect this and disable Microsoft Office document extraction. Coming versions of Apache Solr will have the updated libraries bundled. Happy Searching and Extracting, The Apache Lucene Developers PS: Thanks to Stefan Kopf, Mike Boufford, and Christian Schneider for reporting these issues!