id: default-glassfish-server-page

info:
  name: GlassFish Server Default Page
  author: dhiyaneshDk,righettod
  severity: info
  classification:
    cpe: cpe:2.3:a:oracle:glassfish_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: oracle
    product: glassfish_server
    shodan-query: http.title:"GlassFish Server - Server Running"
  tags: tech,glassfish

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "glassfish server - server running", "glassfish server with premier support", "<b>glassfish server</b>", "glassfish server installation directory")'
        condition: and

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - 'GlassFish\s+Server\s+([A-Za-z0-9\s.]+)(\n|\r)'
# digest: 4a0a00473045022100cf48cd73eec72b7db24549b3777b309fbf3ee7e524c002af7180bc69cee49725022044b3092614b1879bc86f1a60be1ebfe1a5751e493e24b9f3c2127d84145acde5:922c64590222798bb761d5b6d8e72950