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,vuln

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: 4a0a004730450221009aa5d6be5810bf5034cf8234da32241ef9aa1ed50e9efe125661c32ee7d53737022061e627ab299eebd5d29823e11e811604abd306db796d5b53f8f93bd3a81af370:922c64590222798bb761d5b6d8e72950