2021-05-18 13:53:10 +00:00
id : magento-unprotected-dev-files
info :
name : Magento Unprotected development files
author : TechbrunchFR
severity : high
2023-10-14 11:27:55 +00:00
description : Magento version 1.9.2.x includes /dev directories or files that might reveal your passwords and other sensitive information. The /dev directories and files are not protected by default. According to Magento, "these tests are not supposed to end up on production servers".
2022-04-22 10:38:41 +00:00
reference :
- https://support.hypernode.com/en/support/solutions/articles/48001153348-how-to-secure-your-data-using-encryption-and-hashing
2024-09-10 09:08:16 +00:00
classification :
cpe : cpe:2.3:a:magento:magento:*:*:*:*:*:*:*:*
2022-06-15 19:57:39 +00:00
metadata :
verified : true
2023-10-14 11:27:55 +00:00
max-request : 2
2024-09-10 08:22:50 +00:00
vendor : magento
2024-09-10 09:08:16 +00:00
product : magento
shodan-query : http.component:"Magento"
2021-05-18 13:53:10 +00:00
tags : magento
2023-04-27 04:28:59 +00:00
http :
2021-05-18 13:53:10 +00:00
- method : GET
path :
2021-05-20 14:28:57 +00:00
- '{{BaseURL}}/dev/tests/functional/credentials.xml.dist'
- '{{BaseURL}}/dev/tests/functional/etc/config.xml.dist'
2021-05-18 13:53:10 +00:00
matchers :
2021-05-20 14:28:57 +00:00
- type : dsl
dsl :
- 'contains(body, "Magento")'
- 'contains(body, "replace xmlns:xsi=")'
- 'contains(body, "<field path=")'
2023-06-19 21:10:30 +00:00
- 'contains(tolower(header), "application/xml") || contains(tolower(header), "application/octet-stream")'
2021-05-20 14:28:57 +00:00
- 'status_code == 200'
condition : and
- type : dsl
dsl :
- 'contains(body, "Magento")'
- 'contains(body, "config xmlns:xsi")'
- 'contains(body, "<application>")'
- 'contains(body, "<install>")'
2023-06-19 21:10:30 +00:00
- 'contains(tolower(header), "application/xml") || contains(tolower(header), "application/octet-stream")'
2021-05-20 14:28:57 +00:00
- 'status_code == 200'
2023-10-14 11:27:55 +00:00
condition : and
2024-09-12 05:14:01 +00:00
# digest: 490a00463044021f5bab74263df9a12ccd26a32b866fbd5d688e0d7f3e569d0cd4c1aa8bbed032022100857f4627d1dae0be3b16de6f2f383f26658d9f2cd9739975ae362d130a578fa3:922c64590222798bb761d5b6d8e72950