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

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: 490a0046304402203243e5e46110f8396ae7b4074d12aba17b1a8a38a138af9972fa7942162873ba022025e5168d461685a31cdb5b948614d198b97d6edc95014d7680fbfd9943088692:922c64590222798bb761d5b6d8e72950