nuclei-templates/vulnerabilities/magento/magento-2-exposed-api.yaml

42 lines
1.3 KiB
YAML
Raw Normal View History

2021-05-18 13:53:10 +00:00
id: magento-2-exposed-api
info:
name: Exposed Magento 2 API
author: TechbrunchFR
severity: info
description: The API in Magento 2 can be accessed by the world without providing credentials. Through the API information like storefront, (hidden) products including prices are exposed.
2021-05-19 00:22:07 +00:00
reference: https://support.hypernode.com/en/ecommerce/magento-2/how-to-protect-the-magento-2-api
2021-05-18 13:53:10 +00:00
tags: magento
requests:
- method: GET
path:
- '{{BaseURL}}/rest/V1/products'
- '{{BaseURL}}/rest/V1/store/storeConfigs'
2021-05-19 00:22:07 +00:00
- '{{BaseURL}}/rest/V1/store/storeViews'
matchers-condition: or
2021-05-18 13:53:10 +00:00
matchers:
2021-05-19 00:22:07 +00:00
- type: dsl
dsl:
- 'contains(body, "searchCriteria")'
- 'contains(body, "parameters")'
- 'contains(body, "message")'
- 'contains(tolower(all_headers), "application/json")'
condition: and
- type: dsl
dsl:
- 'contains(body, "secure_base_link_url")'
- 'contains(body, "timezone")'
- 'contains(tolower(all_headers), "application/json")'
- 'status_code == 200'
condition: and
- type: dsl
dsl:
- 'contains(body, "name")'
- 'contains(body, "website_id")'
- 'contains(tolower(all_headers), "application/json")'
- 'status_code == 200'
condition: and