nuclei-templates/http/exposures/configs/sftp-credentials-exposure.yaml

45 lines
1.3 KiB
YAML
Raw Normal View History

2021-02-20 14:18:06 +00:00
id: sftp-credentials-exposure
info:
2023-10-26 09:42:49 +00:00
name: SFTP Configuration File - Credentials Exposure
author: geeknik,sheikhrishad
2023-03-02 20:58:29 +00:00
severity: high
2023-10-26 09:42:49 +00:00
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:
2023-03-02 20:58:29 +00:00
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:
2023-10-26 09:42:49 +00:00
verified: true
max-request: 1
github-query: filename:sftp-config.json
tags: sftp,config,exposure
2021-02-20 14:18:06 +00:00
http:
2021-02-20 14:18:06 +00:00
- method: GET
path:
- "{{BaseURL}}/sftp-config.json"
2021-02-20 16:07:10 +00:00
- "{{BaseURL}}/ftpsync.settings"
2021-02-20 14:18:06 +00:00
matchers:
- type: word
2023-10-26 09:42:49 +00:00
part: body
words:
- '"host":'
- '"user":'
- '"password":'
- '"remote_path":'
condition: and
- type: word
part: body
2021-02-20 14:18:06 +00:00
words:
- "file_permissions"
- "extra_list_connections"
2021-03-10 14:03:49 +00:00
condition: and
# digest: 4b0a00483046022100d973fc550a41c6c3cba5c14ef719ba12a18f8447c6cd14fe41f79ec3ae84dbba022100bef46c7bfe06b6cce7a483f28bd82c160fbe3f1cba88dc7484febed13b4bdcf6:922c64590222798bb761d5b6d8e72950