45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
id: deployment-ini
|
|
|
|
info:
|
|
name: FTP Deployment Config File - Exposure
|
|
author: Michal Mikolas (nanuqcz)
|
|
severity: medium
|
|
description: |
|
|
Config file for "FTP deployment" utility usually contains server's FTP credentials in plain text.
|
|
remediation: |
|
|
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.
|
|
reference:
|
|
- https://github.com/dg/ftp-deployment
|
|
metadata:
|
|
vendor: dg
|
|
product: ftp-deployment
|
|
tags: config,exposure
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{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"
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers:
|
|
- type: regex
|
|
regex:
|
|
- "^remote\\s*=\\s*"
|
|
- '^\[(.*?)\]$'
|
|
condition: and
|
|
# digest: 4a0a00473045022046bbfb60adf91e797cd394984e24e8697b7bf700584b9c9f8bc409e34279bf9f022100aed550ad038b2fb4ac255d6a66b96d01c01bd3a82f2f37e69c3a8012ebd6a67a:922c64590222798bb761d5b6d8e72950 |