id: magento-unprotected-dev-files info: name: Magento Unprotected development files author: TechbrunchFR severity: high 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". reference: - https://support.hypernode.com/en/support/solutions/articles/48001153348-how-to-secure-your-data-using-encryption-and-hashing metadata: max-request: 2 verified: true shodan-query: http.component:"Magento" tags: magento http: - method: GET path: - '{{BaseURL}}/dev/tests/functional/credentials.xml.dist' - '{{BaseURL}}/dev/tests/functional/etc/config.xml.dist' matchers: - type: dsl dsl: - 'contains(body, "Magento")' - 'contains(body, "replace xmlns:xsi=")' - 'contains(body, "")' - 'contains(body, "")' - 'contains(tolower(header), "application/xml") || contains(tolower(header), "application/octet-stream")' - 'status_code == 200' condition: and