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:
    max-request: 1
    product: server
    shodan-query: http.title:"Gotify"
    vendor: gotify
    verified: true
  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: 4a0a00473045022013517991106703bc9b43799160c5f099b42bbc4c8723f88a5c2f9f84800fe77c022100820d9fcc5c282d94ce358026c6dfafb85d3aea4978f8f67e6c64ee928db4acbe:922c64590222798bb761d5b6d8e72950