ZeroHour
Help Net Securitypublished ()ingested @zeljkazorz

Vulnerable Apache Solr, Redis, Windows servers hit with cryptominers

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2017-12629
Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 by exploiting XXE in conjunction with use of a Config API add-listener comm

Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 by exploiting XXE in conjunction with use of a Config API add-listener command to reach the RunExecutableListener class. Elasticsearch, although it uses Lucene, is NOT vulnerable to this. Note that the XML external entity expansion vulnerability occurs in the XML Query Parser which is available, by default, for any query request with parameters deftype=xmlparser and can be exploited to upload malicious data to the /upload request handler or as Blind XXE using ftp wrapper in order to read arbitrary local files from the Solr server. Note also that the second vulnerability relates to remote code execution using the RunExecutableListener available on all affected versions of Solr.

NVD description · AI analysis pending
9.892% PoC ×2
  • apache solr
  • apache jboss enterprise application platform
  • apache debian linux
  • +1 more
CVE-2017-9805
XML Deserialization RCE in Apache Struts 2 REST Plugin

CVE-2017-9805 is an unsafe deserialization vulnerability in the REST plugin of Apache Struts 2, which uses the XStream library to deserialize XML request payloads without any type filtering. An attacker triggers it by sending a crafted XML payload to an endpoint handled by the REST plugin, causing the payload to be deserialized into arbitrary objects. Successful exploitation yields remote code execution on the server with the privileges of the web application, typically enough to fully take over the host. Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 are affected, including products from Cisco and NetApp that bundle vulnerable Struts versions. The flaw has a public proof-of-concept exploit, is on CISA's Known Exploited Vulnerabilities catalog, and was reported as under active exploitation after its 2017 disclosure, although the Apache Foundation disputed suggestions that this specific flaw was used in the Equifax breach.

Do: Upgrade Apache Struts to 2.3.34, 2.5.13, or later, or apply the fixed updates for any Cisco or NetApp product that embeds Struts per their advisories. If patching is not immediate, remove or disable the REST plugin, or restrict the XML content types it accepts. Inventory internet-facing applications for Struts REST endpoints and hunt for suspicious XML POSTs, since the CVE is on the CISA KEV list and was reported as actively exploited.

8.199% KEV PoC
  • Apache Struts 2 (REST plugin) 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13
  • Cisco Digital Media Manager Bundled Struts within affected ranges (2.1.1 to 2.3.33 or 2.5.0 to 2.5.12); exact product versions per Cisco advisory
  • Cisco Hosted Collaboration Solution Bundled Struts within affected ranges (2.1.1 to 2.3.33 or 2.5.0 to 2.5.12); exact product versions per Cisco advisory
  • +4 more
mass~100,000-300,000+ internet-exposed Struts servers and applications (only a subset exposing the vulnerable REST plugin); embedded Cisco/NetApp deployments…
Full article329 words · extracted from helpnetsecurity.com · click to collapse

Vulnerable servers of all kinds are being targeted, compromised and made to mine cryptocurrencies for the attackers.

Apache Solr servers under attack

SANS ISC handler Renato Marihno warns about an active campaign aimed at compromising Apache Solr servers. The campaign infected 1777 victims from February 28 to March 8. Of those, 1416 are Solr servers.

vulnerable apache solr

The attackers are exploiting CVE-2017-12629 for gaining access to the vulnerable servers and delivering Monero-mining malware. The flaw dates back to October 12, 2017, and the first public exploit for it to October 17.

The source of the flaw is an incorrectly configured XML parser in the “queryparser” library, Marinho noted, and warned: “As we are dealing with a library flaw, it’s worth mentioning that it may affect other software which depends on ‘queryparser,’ like: IBM InfoSphere version 11.5; JBoss Data Grid verions 7.0.0, 7.1.0; JBoss Enterprise Application Platform (EAP) versions 6, 7, 7.0.8; JBoss Enterprise Portal Platform version 6, among others.”

RedisWannaMine attacks

Dubbed so due to one type of targets (Redis servers) and propagation/lateral movement method (the EternalBlue exploit used in WannaCry attacks), the RedisWannaMine attacks start with the attackers exploiting the CVE-2017-9805 Apache Struts 2 RCE vulnerability.

vulnerable apache solr

Image by Imperva

The attackers then download (via a script) crypto-mining malware from an external location, make sure to achieve persistency through new entries in crontab, and create a new ssh key entry in /root/.ssh/authorized_keys and new entries in the system’s iptables to achieve remote access to the machine.

They also download masscan, a publicly available, open source TCP port scanner, and use it to discover and infect with crypto-mining malware publicly available Redis servers.

The attack script then also launches a process called ebscan.sh, which uses masscan to discover publicly available Windows servers that are vulnerable to the EternalBlue exploit, and infect them – yes, you guessed it! – with crypto miner malware.

These attacks only serve to underscore the importance of keeping one’s servers updated and patched.

Text extracted automatically; images, tables and formatting may be missing. Original: https://www.helpnetsecurity.com/2018/03/09/vulnerable-apache-solr/