id: apache-jspwiki-detect

info:
  name: Apache JSPWiki - Detect
  author: icarot
  severity: info
  description: |
    Detects a Apache JSPWiki web application, leading open source WikiWiki engine, feature-rich and built around standard JEE components (Java, servlets, JSP).
  classification:
    cpe: cpe:2.3:a:apache:jspwiki:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: jspwiki
    shodan-query: title:"JSPWiki"
  tags: tech,jspwiki,apache,detect,discovery

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

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "JSPWiki: Main", "JSPWiki: Login")'
          - 'contains(body, "/jspwiki")'
          - 'status_code == 200'
        condition: and

    extractors:
      - type: regex
        name: version
        part: body
        regex:
          - "JSPWiki v[0-9]+\\.[0-9]+\\.[0-9]+"
# digest: 4a0a0047304502201922924cdf2b96f9184327ed32797257efb91a1593f6464bb46795aa68d4744e022100eb37755b5f783b7ddf4707a2a07b3adbd668ae8fca35fd4c5a2c800eb6d7ff28:922c64590222798bb761d5b6d8e72950