2022-08-28 09:30:17 +00:00
id : magento-config-disclosure
2022-08-21 08:52:05 +00:00
info :
2023-02-22 19:48:03 +00:00
name : Magento Configuration Panel - Detect
2022-08-28 09:30:17 +00:00
author : ptonewreckin,danigoland,geeknik
2022-08-21 08:52:05 +00:00
severity : high
description : |
2023-02-22 19:48:03 +00:00
Magento configuration panel was detected. Misconfigured instances of Magento may disclose usernames, passwords, and database configurations via /app/etc/local.xml.
2022-08-21 08:52:05 +00:00
reference :
- https://github.com/ptonewreckin/cmsDetector/blob/master/signatures/magento.py
2023-02-23 21:17:51 +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-08-21 08:52:05 +00:00
metadata :
verified : true
2023-10-14 11:27:55 +00:00
max-request : 3
2022-08-28 09:30:17 +00:00
shodan-query : http.component:"Magento"
2022-08-21 08:52:05 +00:00
tags : magento,exposure,credential,config
2023-04-27 04:28:59 +00:00
http :
2022-08-21 08:52:05 +00:00
- method : GET
path :
- "{{BaseURL}}/app/etc/local.xml"
- "{{BaseURL}}/app/etc/local.xml.additional"
- "{{BaseURL}}/store/app/etc/local.xml"
stop-at-first-match : true
2023-10-14 11:27:55 +00:00
2022-08-21 08:52:05 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
- "* Magento"
- "<dbname>"
condition : and
- type : word
part : header
words :
- "application/xml"
- type : status
status :
- 200
extractors :
2022-09-16 18:08:08 +00:00
- type : xpath
2022-08-21 08:52:05 +00:00
part : body
2022-09-16 18:08:08 +00:00
xpath :
- "/config/global/resources/default_setup/connection/host"
- "/config/global/resources/default_setup/connection/username"
- "/config/global/resources/default_setup/connection/password"
- "/config/global/resources/default_setup/connection/dbname"
2023-10-20 11:41:13 +00:00
# digest: 490a0046304402207519853cd567cd549e998a7da46410340995dcdeb71463495ebdbf6016923fc90220372cbe41d68f8f4384c6a84e9f0fc083b1b9f7eb333a9a37b1f80d49c8059ee4:922c64590222798bb761d5b6d8e72950