Description
Detected Magento debug.log file was publicly accessible. This file contained sensitive debugging information including full server paths, stack traces, customer activity, internal code paths, cache data, and cron job details.
Detected Magento debug.log file was publicly accessible. This file contained sensitive debugging information including full server paths, stack traces, customer activity, internal code paths, cache data, and cron job details.
id: magento-debug-log-exposure
info:
name: Magento Debug Log - Exposure
author: 0x_Akoko
severity: medium
description: |
Detected Magento debug.log file was publicly accessible. This file contained sensitive debugging information including full server paths, stack traces, customer activity, internal code paths, cache data, and cron job details.
reference:
- https://devdocs.magento.com/guides/v2.4/config-guide/log/log-intro.html
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-538
metadata:
max-request: 1
verified: true
tags: magento,exposure,logs,misconfig,vuln
http:
- method: GET
path:
- "{{BaseURL}}/var/log/debug.log"
max-size: 500000
matchers:
- type: dsl
dsl:
- 'contains_any(body, "main.DEBUG", "main.CRITICAL", "main.ERROR", "main.INFO")'
- 'contains_any(body, "Magento\\", "/vendor/magento/", "cache_invalidate", "Cron Job")'
- 'contains_any(content_type, "text/x-log")'
- 'status_code == 200'
condition: and
# digest: 490a0046304402202267ea31f445cc68783804f8d861e4f6b8d1c5758705186b3987ce36165ac73a0220186cf35cff52357e91874eb4352826f7555e84518651078b235df3db57783880:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.