id: apache-tapestry-detect

info:
  name: Apache Tapestry Framework detect
  author: pikpikcu
  severity: info
  classification:
    cpe: cpe:2.3:a:apache:tapestry:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: tapestry
    fofa-query: app="APACHE-Tapestry"
  tags: apache,tapestry,tech

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

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        part: body
        words:
          - 'content="Apache Tapestry Framework'
          - 'content="Tapestry Application Framework'
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'Tapestry Framework \(version ([0-9.]+)\)'

      - type: regex
        part: body
        group: 1
        regex:
          - 'Tapestry Application Framework, version ([0-9.-A-Z]+)T" \/>'
# digest: 490a00463044022000b499b73b70704c06c44e760b8606a9717fed3c5cbb46d346399e24da31c415022071f25de6d9595a7fca011bcd1f4454d55deb56ca2f7ac5e0e2730115edd6c8ea:922c64590222798bb761d5b6d8e72950