id: couchdb-exposure

info:
  name: Apache CouchDB Panel - Detect
  author: organiccrap
  severity: info
  description: Apache CouchDB panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/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:couchdb:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: couchdb
    shodan-query:
      - product:"couchdb"
      - cpe:"cpe:2.3:a:apache:couchdb"
  tags: panel,couchdb,apache,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - CouchDB/
          - Erlang OTP/
        part: header
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a004730450221009fdc6295a7a9096c697ab29fdda3d87dbfb74c88534b65a68577c9bba693bf7d02200ace96c6764d6e54d37963089b8176c36fbf24c37016d1b0b63e9e2664f20a93:922c64590222798bb761d5b6d8e72950