SFTP Configuration File - Credentials Exposure
ID: sftp-credentials-exposure
Severity: high
Author: geeknik,sheikhrishad
Tags: sftp,config,exposure
Description
Section titled “Description”SFTP configuration file was detected.
YAML Source
Section titled “YAML Source”id: sftp-credentials-exposure
info: name: SFTP Configuration File - Credentials Exposure author: geeknik,sheikhrishad severity: high description: SFTP configuration file was detected. reference: - https://blog.sucuri.net/2012/11/psa-sftpftp-password-exposure-via-sftp-config-json.html - https://www.acunetix.com/vulnerabilities/web/sftp-ftp-credentials-exposure/ - https://codexns.io/products/sftp_for_sublime/settings 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:southrivertech:titan_sftp_server:*:*:*:*:windows:*:*:* metadata: verified: true max-request: 2 github-query: filename:sftp-config.json product: titan_sftp_server vendor: southrivertech tags: sftp,config,exposure
http: - method: GET path: - "{{BaseURL}}/sftp-config.json" - "{{BaseURL}}/ftpsync.settings"
matchers: - type: word part: body words: - '"host":' - '"user":' - '"password":' - '"remote_path":' condition: and
- type: word part: body words: - "file_permissions" - "extra_list_connections" condition: and# digest: 4a0a00473045022008a4185b1aae68960ebee7c2a1aff741e0d8227e4ea1d9b092bc91dcd44394a8022100b04ae06d2d3a21e43150ce6a9a8dc2d5f054fcc96378f70d088de3de775bd740:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/configs/sftp-credentials-exposure.yaml"