id: solr-panel-exposure

info:
  name: Apache Solr Admin Panel - Detect
  author: pdteam
  severity: info
  description: Apache Solr admin panel was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: solr
    shodan-query:
      - http.title:"Solr Admin"
      - 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: panel,solr,apache,admin

http:
  - method: GET
    path:
      - '{{BaseURL}}/solr/'
      - '{{BaseURL}}'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Solr Admin</title>"

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'favicon\.ico\?_=([0-9.]+)'
# digest: 4a0a00473045022100a233bca962e382bec645101d1e054d2f9e597181bd5f07bda8ecfd32cf38c86a022036b6cc67a921126d0cf0941b372fb0af38808c4d471d1ec4f0ad81ef53c0f1a0:922c64590222798bb761d5b6d8e72950