id: default-glassfish-server-page

info:
  name: GlassFish Server Default Page
  author: dhiyaneshDk,righettod
  severity: info
  metadata:
    max-request: 1
    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)'
