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.
2022-04-22 10:38:41 +00:00
reference :
- https://support.hypernode.com/en/ecommerce/magento-2/how-to-protect-the-magento-2-api
2022-06-15 19:59:46 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 3
2022-06-15 19:59:46 +00:00
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 :
- '{{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")'
2023-06-19 21:10:30 +00:00
- '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")'
2023-06-19 21:10:30 +00:00
- '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")'
2023-06-19 21:10:30 +00:00
- 'contains(tolower(header), "application/json")'
2021-05-19 00:22:07 +00:00
- 'status_code == 200'
condition : and