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
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"/ftpsync.settings"
  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: 4a0a0047304502201e28c911f8fabf5fe779e079a838becaff04cf7d4f09b371d3531ae4439668ed022100d6c19923331e37144d1f4e0a89f37af21050a0d4a6a925016646f72bac506cf6:922c64590222798bb761d5b6d8e72950
