id: zentao-detect

info:
  name: Zentao Panel - Detect
  author: pikpikcu
  severity: info
  description: Zentao panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:easycorp:zentao:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: easycorp
    product: zentao
  tags: panel,easycorp,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/zentao/index.php?mode=getconfig"

    matchers:
      - type: word
        words:
          - '"sessionName":"zentaosid"'
          - '{"version":"'
        part: body
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"version":"([v0-9.]+)"'
# digest: 4a0a004730450220671d42d0d743fb03d1c28d0aa35ce05e32e2dd6729e30df2deb3481b4b226906022100e2f475b6d99002648f581f4e2f299e0bc3012b8cb3020279c03e24e8efb9bb5b:922c64590222798bb761d5b6d8e72950