id: uptime-kuma-installer

info:
  name: Uptime Kuma - Installer
  author: 0x_Akoko
  severity: high
  description: |
   Detected Uptime Kuma setup page is publicly accessible with needSetup enabled, allowing unauthenticated users to complete installation and gain full admin access by access /setup-database.
  reference:
    - https://github.com/louislam/uptime-kuma
  metadata:
    verified: true
    max-request: 1
    vendor: louislam
    product: uptime-kuma
    fofa-query: app="Uptime-Kuma"
    shodan-query: http.title:"Uptime Kuma"
  tags: exposure,setup,installer,uptime-kuma

http:
  - method: GET
    path:
      - "{{BaseURL}}/setup-database-info"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "\"needSetup\":true", "runningSetup", "isEnabledEmbeddedMariaDB")'
          - 'contains(content_type, "application/json")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a004730450220016fed0fab49f683c64aa02266dc43f6cd3994dc7ee2206d15baa4a336c029ff022100fcd5eae0c24fded7cd1750cbefc2808b01f2b07ed3abe397b60de8b5f09121bb:922c64590222798bb761d5b6d8e72950