Don’t Panic Yet: Breaking Down the Latest Apache Solr RCE Vulne
Apache Solr in cloud mode has a Schema Designer feature that can be abused by uploading a malicious schema configuration, which could trick Solr into loading a crafted .jar file and potentially achieve remote code execution. The real-world exploitability is limited because the attack relies on writing to temporary directories that vary by OS and a Security Manager is enabled by default on Windows and macOS.
Published on medium.com
Apache Solr, a popular open-source search platform, was recently reported to have a Remote Code Execution (RCE) vulnerability when running in cloud mode. Our team at Chaitin’s Emergency Response Lab analyzed this issue in detail, and here’s what you should know before jumping to conclusions.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Schema Designer feature in Solr cloud mode allows uploading schema configurations that can reference or cause the loading of external .jar files without sufficient validation or sandboxing.
Impact
An attacker could potentially achieve remote code execution, but the real-world exploitability is limited because the attack relies on writing to temporary directories that vary by OS and a Security Manager is enabled by default on Windows and macOS, blocking writes to those directories.
What the attacker needed
Solr running in cloud mode; Ability to upload a schema configuration
The fix
Upgrade to the latest Solr release; as a temporary workaround, restrict Solr access via network ACLs and enable authentication.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Apache Solr is a search server. In 'cloud mode' it has a feature called Schema Designer that lets users define how data is indexed. This report says an attacker could upload a specially crafted schema that makes Solr load a malicious Java file, which could let them run their own code on the server. However, the report notes that this is hard to do in practice because of built-in protections and because the attack depends on the operating system.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.