2022-12-01 17:59:39 +00:00
|
|
|
id: sftp-config-exposure
|
2022-11-30 07:49:00 +00:00
|
|
|
|
|
|
|
info:
|
2023-02-23 21:05:16 +00:00
|
|
|
name: SFTP Configuration File - Detect
|
2022-11-30 07:49:00 +00:00
|
|
|
author: geeknik
|
|
|
|
severity: high
|
2023-02-23 21:05:16 +00:00
|
|
|
description: SFTP configuration file was detected.
|
2023-03-02 20:02:30 +00:00
|
|
|
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
|
2022-11-30 07:49:00 +00:00
|
|
|
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
|
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2022-11-30 07:49:00 +00:00
|
|
|
verified: true
|
|
|
|
github-query: filename:sftp-config.json
|
|
|
|
tags: sftp,config,exposure
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-11-30 07:49:00 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/sftp-config.json"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '"host":'
|
|
|
|
- '"user":'
|
2022-12-01 17:59:39 +00:00
|
|
|
- '"password":'
|
|
|
|
- '"remote_path":'
|
2022-11-30 07:49:00 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|