id: couchbase-sync-gateway

info:
  name: Couchbase Sync Gateway
  author: dhiyaneshDk
  severity: info
  classification:
    cpe: cpe:2.3:a:couchbase:sync_gateway:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: couchbase
    product: sync_gateway
    shodan-query: html:"Couchbase Sync Gateway"
  tags: tech,couchbase

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Couchbase Sync Gateway"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'version":"Couchbase Sync Gateway\/([0-9.(;a-z)]+)'
# digest: 4b0a004830460221008e813d4af2fc3c36e515ed64f75a51ed36654ad0211fd7740738bdb64d882941022100982ece60e8668569e28be8548d9e80c2edb8cf71678856a1f52ba92b561c876b:922c64590222798bb761d5b6d8e72950