id: ws-ftp-ini

info:
  name: WS FTP File Disclosure
  author: DhiyaneshDK
  severity: low
  description: WS FTP file is disclosed.
  classification:
    cpe: cpe:2.3:a:ipswitch:ws_ftp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ipswitch
    product: ws_ftp
    google-query: intitle:"Index of" ws_ftp.ini
  tags: exposure,ftp,files

http:
  - method: GET
    path:
      - '{{BaseURL}}/ws_ftp.ini'

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'HOST='
          - 'UID='
          - 'DIR='
        condition: and

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