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,discovery

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