projectdiscovery / nuclei-templates

Community curated list of templates for the nuclei engine to find security vulnerabilities.
https://github.com/projectdiscovery/nuclei
MIT License
9.27k stars 2.63k forks source link

[nuclei-template] #8949

Closed Banannna69 closed 9 months ago

Banannna69 commented 9 months ago

CVE-2023-50290- Apache Solr - Unauthorized access

id: CVE-2023-50290

info:
  name: Apache Solr - Unauthorized access
  author: Banana69
  severity: High
  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.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-50290
  classification:
    cve-id: CVE-2023-50290
  metadata:
    fofa-query: app="APACHE-Solr"
  tags: cve,cve2023,unauth,

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "system.env")'
        condition: and

image

olearycrew commented 9 months ago

@Banannna69 thanks for this contribution!

DhiyaneshGeek commented 9 months ago

Hi @Banannna69 i have raised the PR and updated the matcher

Let me know if it looks good

Thanks

Reference Draft before the issue : https://x.com/sirifu4k1/status/1746755165066236216?s=20