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

46 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: 2
2023-10-26 09:42:49 +00:00
github-query: filename:sftp-config.json
tags: sftp,config,exposure
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: 4a0a0047304502201cfe05006741a4d9a4ee05d8e111f43e635cb009ea5e3a02964a258267de2c99022100c64922a0db78e4e90b2f81139ba44132ddeea3417a61e4d6076a654365cc4715:922c64590222798bb761d5b6d8e72950