id: sftpgo-admin-setup

info:
  name: SFTPGo Admin - Setup
  author: ritikchaddha
  severity: high
  description: |
    SFTPGo Admin Password setup page has been exposed.
  classification:
    cpe: cpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: sftpgo_project
    product: sftpgo
    fofa-query: title="SFTPGo - Setup"
  tags: sftpgo,misconfig,setup

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'SFTPGo - Setup'
          - 'SFTPGo you need to create an admin user'
        condition: or

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