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

52 lines
1.7 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.
reference:
- https://support.hypernode.com/en/ecommerce/magento-2/how-to-protect-the-magento-2-api
2024-09-10 09:08:16 +00:00
classification:
cpe: cpe:2.3:a:magento:magento:*:*:*:*:*:*:*:*
2022-06-15 19:59:46 +00:00
metadata:
max-request: 3
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
http:
2021-05-18 13:53:10 +00:00
- 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(header), "application/json")'
2021-05-19 00:22:07 +00:00
condition: and
- type: dsl
dsl:
- 'contains(body, "secure_base_link_url")'
- 'contains(body, "timezone")'
- 'contains(tolower(header), "application/json")'
2021-05-19 00:22:07 +00:00
- 'status_code == 200'
condition: and
- type: dsl
dsl:
- 'contains(body, "name")'
- 'contains(body, "website_id")'
- 'contains(tolower(header), "application/json")'
2021-05-19 00:22:07 +00:00
- 'status_code == 200'
2023-10-14 11:27:55 +00:00
condition: and
2024-09-10 09:08:16 +00:00
# digest: 490a0046304402205108a66aabb3bfd2cfa26f2fd4816a1afa5f3c52dd43f5ea029a1308d8079204022045463c3b751fd59511882d4eb2e2f046f4f31c5f5c3fcc52daac8d8adcb2214d:922c64590222798bb761d5b6d8e72950