id: couchdb-adminparty

info:
  name: CouchDB Admin Default - Detect
  author: organiccrap
  severity: high
  description: CouchDB is susceptible to requests in the context of an admin user.
  reference:
    - https://docs.couchdb.org/en/stable/intro/security.html#authentication-database
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: couchdb

http:
  - method: GET
    path:
      - '{{BaseURL}}/_users/_all_docs'

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

      - type: word
        words:
          - total_rows
          - offset
        part: body
        condition: and
# digest: 4a0a00473045022100de5cdb98ff23e5a1be86b7dc03cb3fcb1077e449ac672645c45eddfbd54fd6100220154e3793a69d181d03be76944ce73568c00aa289ba5391f78edfa50319f266af:922c64590222798bb761d5b6d8e72950