.. / CVE-2023-50290

Exploit for Apache Solr - Host Environment Variables Leak via Metrics API (CVE-2023-50290)

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 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.

Nuclei Template

View the template here CVE-2023-50290.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2023/CVE-2023-50290.yaml
Copy

References:

https://x.com/sirifu4k1/status/1746755165066236216?s=20
https://nvd.nist.gov/vuln/detail/CVE-2023-50290
https://solr.apache.org/security.html#cve-2023-50290-apache-solr-allows-read-access-to-host-environment-variables
https://github.com/wy876/wiki
https://github.com/wy876/POC