Shopify · Report #417839
H1514 Lack of access control on edit packing slip template
How it was found
Summary:
An admin is able to edit the Edit packing slip template at /admin/settings/packing_slip_template. However, a staff user with only "Home" permission (and none other) can view and also make edits to this template.
Description:
The Edit packing slip feature exists so an admin user can customize the packing slip added to an order after fulfilment, without the need of external apps (such as Print Order). As mentioned, the problem here arises that any staff user in that Shop can access this endpoint and actually make edits to the template.
Steps To Reproduce:
-
Create and login a user without permissions (Home only): {F354374}
-
As the user without permissions access /admin/settings/packing_slip_template and make any edits in the template file: {F354375}
-
Login as other user with adequate permissions, e.g. admin and refresh the same endpoint to confirm that the changes were saved:
{F354377}
Impact
Having control of the packing slip a malicious staff user can e.g. change the shipping address for his own, potentially receiving orders at some time in the future.
More importantly, besides any disruption of the service (by erasing the template) or manipulation, it can lead to further attacks targeting the exfiltration/disclosure of liquid variables.