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

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: 4a0a0047304502205b10df07f924a43419156eaeddc9c95f96a0d8227a4135b6300d5828b04f56b5022100cfa6303b459b6ef74c1802f1f08eb8de5c8f8cfee00ece29dcbbd092bbb5e118:922c64590222798bb761d5b6d8e72950