CVE-2020-24404: Magento 2 Community Edition vulnerable to Improper Authorization
2.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.50585%
CWE
Published
5/24/2022
Updated
7/20/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| magento/community-edition | composer | < 2.3.6 | 2.3.6 |
| magento/community-edition | composer | = 2.4.0 | 2.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises from improper authorization in the Integrations component, specifically allowing users with 'Pages' resource access to delete CMS pages via REST API. The primary failure points are: 1) The controller action (execute()) for deletion lacked granular permission checks, and 2) The webapi.xml configuration for the delete endpoint referenced a broad resource ('Magento_Cms::page') instead of a delete-specific ACL. These issues allowed bypassing proper authorization checks. The functions are identified based on Magento's structure, where API endpoints map to controller/service methods, and authorization is enforced via ACL resources in webapi.xml.