Closed
Description
Preconditions (*)
- Magento installation with
CatalogGraphQl
module enabled
Steps to reproduce (*)
Take a look at the ProductInterface
It allows retrieving some data for the non-authorized users that we usually expose neither on the standard storefront nor with the REST API.
For example, the following fields
special_from_date
special_to_date
are not supposed to be visible for a non-authorized client since this data exposes information about sales period that should be hidden by default.
The same about
created_at
updated_at
websites
attribute_set_id
Expected result (*)
- Only data that is required for rendering product details on the storefront is available
Actual result (*)
- Product data that is supposed to be visible for admin only is visible for non-authorized users
Proposed solution
At least, remove the following fields from the schema
special_from_date
special_to_date
The other fields mentioned in the issue need to be discussed
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.