komga-installer: Komga - Installer Exposure

2026-11-29 PoC Public

Description

Komga contains an installer exposure caused by the unauthenticated /api/v1/claim endpoint staying open until the first account is created, letting remote attackers claim the server and gain full admin control over libraries, users and settings.

Details

Severity
高危
Published
PoC
Public

PoC

id: komga-installer

info:
  name: Komga - Installer Exposure
  author: s4e-io
  severity: high
  description: |
    Komga contains an installer exposure caused by the unauthenticated /api/v1/claim endpoint staying open until the first account is created, letting remote attackers claim the server and gain full admin control over libraries, users and settings.
  reference:
    - https://github.com/gotson/komga
    - https://komga.org/docs/openapi/get-claim-status
    - https://komga.org/docs/openapi/claim-server
  metadata:
    max-request: 2
    verified: true
    vendor: gotson
    product: komga
    shodan-query: http.title:"Komga"
    fofa-query: title="Komga"
  tags: misconfig,exposure,install,komga,vuln

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "<title>Komga</title>", "window.resourceBaseUrl")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        GET /api/v1/claim HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'regex("\"isClaimed\"\\s*:\\s*false", body)'
          - 'contains(content_type, "json")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100c49c22e5d2a4990ab1cf72e36f60f19bf108218a42224963e2be2d7ca0884d0a022100bcbb156312de05150e0fa91b1bec910cdb4eb12929659f772e01b21da9dc3656:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life