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