id: trilium-notes-installer

info:
  name: Trilium Notes Installer - Exposure
  author: DhiyaneshDk
  severity: high
  description: |
    Detects if the Trilium Notes setup page is accessible.
  metadata:
    max-request: 1
    shodan-query: "html:\"Trilium Notes\""
  tags: trilium,setup,misconfig,installer

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Trilium Notes setup"

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008cd366cf3856c52e262921517e7463959211793eed6c3695234754783a9742c1022100ebeaafb0e1c835a37d6ad5356e53d80f53169b6e5c2955aeb420d04f010e397b:922c64590222798bb761d5b6d8e72950