2024-03-12 16:39:09 +00:00
|
|
|
id: deployment-ini
|
|
|
|
|
|
|
|
info:
|
2024-03-27 18:49:28 +00:00
|
|
|
name: FTP Deployment Config File - Exposure
|
2024-03-12 16:39:09 +00:00
|
|
|
author: Michal Mikolas (nanuqcz)
|
2024-03-27 18:49:28 +00:00
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
Config file for "FTP deployment" utility usually contains server's FTP credentials in plain text.
|
|
|
|
remediation: |
|
2024-06-07 10:04:29 +00:00
|
|
|
Delete the config file from server & add it to `ignore` section of the deployment file. Or block access to the file using `.htaccess` on the server.
|
2024-03-27 18:49:28 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/dg/ftp-deployment
|
2024-03-12 16:39:09 +00:00
|
|
|
metadata:
|
2024-06-07 10:04:29 +00:00
|
|
|
max-request: 12
|
2024-03-12 16:39:09 +00:00
|
|
|
vendor: dg
|
2024-06-07 10:04:29 +00:00
|
|
|
product: "ftp-deployment"
|
|
|
|
tags: config,exposure,dg
|
2024-03-12 16:39:09 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2024-04-12 10:31:51 +00:00
|
|
|
- "{{BaseURL}}{{paths}}"
|
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- "/deployment.ini"
|
|
|
|
- "/deploy.ini"
|
|
|
|
- "/production.ini"
|
|
|
|
- "/prod.ini"
|
|
|
|
- "/deployment.production.ini"
|
|
|
|
- "/deployment.prod.ini"
|
|
|
|
- "/deploy.production.ini"
|
|
|
|
- "/deploy.prod.ini"
|
|
|
|
- "/server.ini"
|
|
|
|
- "/ftp.ini"
|
|
|
|
- "/ftps.ini"
|
|
|
|
- "/sftp.ini"
|
2024-03-12 16:39:09 +00:00
|
|
|
|
2024-03-27 18:49:28 +00:00
|
|
|
stop-at-first-match: true
|
|
|
|
|
2024-03-12 16:39:09 +00:00
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2024-03-27 18:49:28 +00:00
|
|
|
- "^remote\\s*=\\s*"
|
|
|
|
- '^\[(.*?)\]$'
|
|
|
|
condition: and
|
2024-06-08 16:02:17 +00:00
|
|
|
# digest: 4a0a00473045022100d52ae9e890cba7ed8c1f2e2ce61d3d79aee0ac538dc5dc2b4ed6def8c6cf919c02205f24f6b7b9ece29029bcc0f639eb52cb6e9a24113d718711ddaf4fa38cec7154:922c64590222798bb761d5b6d8e72950
|