nuclei-templates/technologies/magento-detect.yaml

40 lines
1.2 KiB
YAML
Raw Normal View History

2021-05-18 13:53:10 +00:00
id: magento-detect
info:
name: Magento Detect
author: TechbrunchFR
severity: info
description: Identify Magento
tags: magento
requests:
- method: GET
path:
- '{{BaseURL}}'
2021-05-18 17:29:14 +00:00
- '{{BaseURL}}/js/varien/product.js'
- '{{BaseURL}}/graphql?query=+{customerDownloadableProducts+{+items+{+date+download_url+order_increment_id+remaining_downloads+status+}}+}'
2021-05-18 13:57:50 +00:00
# There might be a better way to do that, the idea of this check is that Magento might be behind some kind of proxy when
# consumed by a SPA/PWA app so we need a valid GraphQL query from Magento to check
# https://devdocs.magento.com/guides/v2.4/graphql/
2021-05-18 17:29:14 +00:00
2021-05-19 00:22:07 +00:00
matchers-condition: or
2021-05-18 13:57:50 +00:00
matchers:
2021-05-18 17:29:14 +00:00
- type: dsl
dsl:
- 'contains(tolower(all_headers), "x-magento")'
- 'status_code == 200'
condition: and
- type: dsl
dsl:
- 'contains(body, "Magento Core Team")'
- 'status_code == 200'
condition: and
- type: dsl
dsl:
2021-05-19 00:22:07 +00:00
- 'contains(body, "graphql-authorization")'
2021-05-18 17:29:14 +00:00
- 'contains(body, "The current customer")'
- 'status_code == 200'
condition: and