id: cvsweb-detect

info:
  name: CVSweb - Detect
  author: lu4nx
  severity: info
  description: |
    CVSweb is a WWW interface for CVS repositories with which you can browse a file hierarchy on your browser to view each file's revision history in a very handy manner.
  reference:
    - https://cvsweb.openbsd.org/
  classification:
    cpe: cpe:2.3:a:freebsd:cvsweb:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: freebsd
    product: cvsweb
    shodan-query: title:"cvsweb"
    fofa-query: title="cvsweb"
    zoomeye-query: title="cvsweb"
  tags: tech,cvsweb,detect

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'content=".*CVSweb.*"'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'content=".*CVSweb\s*([0-9.]+)"'
# digest: 4a0a00473045022100db54b03c6daaf345b40e9fd2b453b3bbf89c9d4ad6c56ec9f722c1291dbc84f00220787798d5bc0f5f999cb305e8cfc5d24358834ce4fc8c981a32e473a63e22450d:922c64590222798bb761d5b6d8e72950