id: gotify-panel

info:
  name: Gotify Login Panel - Detect
  author: righettod
  severity: info
  description: Gotify login panel was detected.
  reference:
    - https://github.com/gotify/server
  classification:
    cpe: cpe:2.3:a:gotify:server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gotify
    product: server
    shodan-query:
      - http.title:"Gotify"
      - http.title:"gotify"
    fofa-query: title="gotify"
    google-query: intitle:"gotify"
  tags: panel,gotify,login,detect

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(body, "<title>Gotify", "content=\"Gotify")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"version":"([0-9.]+)"'
# digest: 4b0a00483046022100f316d8489e1f95df1e620df1773c56b00860422a2ae0f7f4a9108871ae66c8cb022100a3f58855e20a184121d09ed55206949dadf0a70b4689abcc53db3577be343567:922c64590222798bb761d5b6d8e72950