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
|
2023-02-23 21:06:53 +00:00
|
|
|
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
|
2023-02-23 21:06:53 +00:00
|
|
|
cwe-id: CWE-200
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2023-10-26 09:42:49 +00:00
|
|
|
verified: true
|
2023-10-27 16:34:45 +00:00
|
|
|
max-request: 2
|
2023-10-26 09:42:49 +00:00
|
|
|
github-query: filename:sftp-config.json
|
|
|
|
tags: sftp,config,exposure
|
|
|
|
|
2023-04-27 04:28:59 +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
|
2023-10-29 11:57:59 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502201cfe05006741a4d9a4ee05d8e111f43e635cb009ea5e3a02964a258267de2c99022100c64922a0db78e4e90b2f81139ba44132ddeea3417a61e4d6076a654365cc4715:922c64590222798bb761d5b6d8e72950
|