id: 4D-detect

info:
  name: 4D Detection
  author: righettod
  severity: info
  description: 4D technology was detected.
  reference:
    - https://us.4d.com/
    - https://doc.4d.com/4Dv18/4D/18.4/URLs-and-Form-Actions.300-5232844.en.html
    - https://doc.4d.com/4Dv18/4D/18.4/Information-about-the-Web-Site.300-5232828.en.html
  classification:
    cpe: cpe:2.3:a:4d:4d:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: 4d
    product: 4d
    shodan-query: http.html:"4DACTION/"
  tags: 4D,detect,tech

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/4DACTION/"
          - "/4DSTATS"
          - "/4DHTMLSTATS"
          - "/4DCACHECLEAR"
          - "/4DWEBTEST"
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - 'Server:\s+4D(?:_V[0-9]+)?/([0-9.]+)'
# digest: 490a00463044022039ce90ace7dd9797f7b86ff4b45b31cb98745554c23f8d68c2b0d2f57c1a173202207d9f04b3c0e2b1e58a8a65b34497a67ad06588f8041fcf74fd6bc0a209316620:922c64590222798bb761d5b6d8e72950