CVE-2023-50290
Apache Solr: Host environment variables are published via the Metrics API
Record summary
CVE-2023-50290 has a selected CVSS score of 6.5 (medium); EIP currently links 1 repository PoC and 1 Nuclei template.
Description
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Solr. The Solr Metrics API publishes all unprotected environment variables available to each Apache Solr instance. Users are able to specify which environment variables to hide, however, the default list is designed to work for known secret Java system properties. Environment variables cannot be strictly defined in Solr, like Java system properties can be, and may be set for the entire host, unlike Java system properties which are set per-Java-proccess. The Solr Metrics API is protected by the "metrics-read" permission. Therefore, Solr Clouds with Authorization setup will only be vulnerable via users with the "metrics-read" permission. This issue affects Apache Solr: from 9.0.0 before 9.3.0. Users are recommended to upgrade to version 9.3.0 or later, in which environment variables are not published via the Metrics API.
Exploitation context
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
Default status: unaffected | CVE List | 9.0.0 to < 9.3.0 | affected |
org.apache.solr:solr-coreBrowse Maven / org.apache.solr:solr-core | GitHub Advisory | 9.0.0 to < 9.3.0 · Fixed in 9.3.0 | affected |
Proofs of concept
1Repository PoCs
GitHubdesaivinayak449/bug-bounty-reports-desai-vinayakRepository PoCby desaivinayak449Stars: 0Not analyzed7 files
Nuclei templates
1ProjectDiscoveryMEDIUMApache Solr - Host Environment Variables Leak via Metrics APICVSS 6.5
Exposure of Sensitive Information to an Unauthorized Actor Vulnerability in Apache Solr. The Solr Metrics API publishes all unprotected environment variables available to each Apache Solr instance. Users can specify which environment variables to hide, however, the default list is designed to work for known secret Java system properties. Environment variables cannot be strictly defined in Solr, like Java system properties can be, and may be set for the entire host,unlike Java system properties which are set per-Java-proccess.
Impact
This vulnerability can lead to the exposure of sensitive information, potentially allowing an attacker to gain unauthorized access or perform further attacks.
Remediation
Users are recommended to upgrade to version 9.3.0 or later, in which environment variables are not published via the Metrics API.
Source: ProjectDiscovery