ESB-2018.1546 - [Win][UNIX/Linux] Solr: Modify arbitrary files - Remote/unauthenticated 2018-05-22

Printable version
PGP/GPG verifiable version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2018.1546
           XXE vulnerability due to Apache Solr configset upload
                                22 May 2018

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Solr
Publisher:         Apache
Operating System:  UNIX variants (UNIX, Linux, OSX)
                   Windows
Impact/Access:     Modify Arbitrary Files -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-8010  

Original Bulletin: 
   https://issues.apache.org/jira/browse/SOLR-12316

- --------------------------BEGIN INCLUDED TEXT--------------------

CVE-2018-8010: XXE vulnerability due to Apache Solr configset upload

Severity: High

Vendor:
The Apache Software Foundation

Versions Affected:
Solr 6.0.0 to 6.6.3
Solr 7.0.0 to 7.3.0

Description:
The details of this vulnerability were reported internally by one of Apache
Solr's committers.
This vulnerability relates to an XML external entity expansion (XXE) in Solr
config files (solrconfig.xml, schema.xml, managed-schema). 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. See [1] for more details.

Mitigation:
Users are advised to upgrade to either Solr 6.6.4 or Solr 7.3.1 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.4 or Solr 7.3.1 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:
Ananthesh, Ishan Chattopadhyaya

References:
[1] https://issues.apache.org/jira/browse/SOLR-12316
[2] https://wiki.apache.org/solr/SolrSecurity

- -----
Uwe Schindler
uschindler@apache.org 
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany
http://lucene.apache.org/

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWwOcn4x+lLeg9Ub1AQgwbhAAnhozdbk8h1advQXZq9k7lwYUM28UsEIc
p4yVV8cEy8nUmcSujThT7R3Mz4oQ+dd5OHcVgHkav2J1f/EuffCUSqAmvYQV59of
WEmqMq2/vXeL4XGNyz5ERbEX+9HaIGh0F+3QHBDKtPprWotb+IRwaebIUOE6fUPV
JfRbGpVaQqqOfAIPAYSUYAGK8C/GT1c8C1YnuiRW/WJ6zqQ4TtVetotWs8/0EU85
LOeOsMYVWNcZfATXjwwocASAVjBEDPc+NnHtT/ZuHMhwL8na9K5cY30IBugEcT3v
/T+TbiJoDj6BvtYWOIv4iGT0h/B42DUf3W3lovxd8Us6Utt9gO7wnx2ltx50r4Ra
YDpC6v9JlNCSNpDSpMSDcMe/XlcwXGTPLKtnY7jXV3Qw5xT3glzaa9gJRmpMiZKi
5qEmsTvuHAKfbdr/UQK+ejctbL7otb5N0WsnohFbnfrqmROSAUHyHbWc+Mqbopnf
5MyJfQQBzzXvorVxOlOPZGXtbcRVNvMtuhIzZ5ZIlZ1hcXO+Zko8xQ+KGv8cLoCj
elME+30LXUveIcpAKscNzINBY6mZC9UgpIb7R2NdG1GEl8Mz6PwlFZhwWv2j38lZ
eekeeWV0jeotu1/K38jWfTAVGUO1XX84eCZ0mKewYXs21LckgYcGCC4zZUjyIPDQ
bjd8q0prKgU=
=zu38
-----END PGP SIGNATURE-----

« Back to bulletins