id: ftp-credentials-exposure

info:
  name: FTP Credentials Exposure
  author: pikpikcu
  severity: high
  description: FTP credentials were detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-200
    cpe: cpe:2.3:a:wftpserver:wing_ftp_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"/ftpsync.settings"
    product: wing_ftp_server
    vendor: wftpserver
  tags: config,ftp,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/ftpsync.settings"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "FTPSync"
          - "overwrite_newer_prevention"
          - "default_folder_permissions"
        condition: and

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