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

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