From ce388acf79d4b9c25d45fbfac79a2e732aeaee44 Mon Sep 17 00:00:00 2001 From: Michal Mikolas Date: Tue, 12 Mar 2024 17:39:09 +0100 Subject: [PATCH] deployment-ini: Added 'FTP Deployment' configuration file exposure. --- http/exposures/configs/deployment-ini.yaml | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 http/exposures/configs/deployment-ini.yaml diff --git a/http/exposures/configs/deployment-ini.yaml b/http/exposures/configs/deployment-ini.yaml new file mode 100644 index 0000000000..7c004bcbdc --- /dev/null +++ b/http/exposures/configs/deployment-ini.yaml @@ -0,0 +1,38 @@ +id: deployment-ini + +info: + name: FTP Deployment config file + author: Michal Mikolas (nanuqcz) + severity: critical + 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 + classification: + cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H + cvss-score: 9.8 + metadata: + vendor: dg + product: ftp-deployment + tags: config,exposure + +http: + - method: GET + path: + - "{{BaseURL}}/deployment.ini" + - "{{BaseURL}}/deploy.ini" + - "{{BaseURL}}/production.ini" + - "{{BaseURL}}/prod.ini" + - "{{BaseURL}}/deployment.production.ini" + - "{{BaseURL}}/deployment.prod.ini" + - "{{BaseURL}}/deploy.production.ini" + - "{{BaseURL}}/deploy.prod.ini" + - "{{BaseURL}}/server.ini" + - "{{BaseURL}}/ftp.ini" + - "{{BaseURL}}/ftps.ini" + - "{{BaseURL}}/sftp.ini" + + matchers-condition: or + matchers: + - type: regex + regex: + - "remote\\s*=\\s*"