CVE-2021-20750: EC-CUBE Cross-site scripting vulnerability
Summary
CVE-2021-20750: EC-CUBE Cross-site scripting vulnerability. Affects ec-cube/ec-cube across 2 version ranges.
>= 3.0.0, <= 3.0.18-p2
>= 4.0.0, < 4.0.6
No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
EC-CUBE is an open-source e-commerce platform written in PHP. It provides various features for building and managing online stores. The vulnerability affects EC-CUBE versions 3.0.0 to 3.0.18-p2 (EC-CUBE 3 series) and versions 4.0.0 to 4.0.5-p1 (EC-CUBE 4 series).
Vulnerability Detail
The vulnerability in EC-CUBE allows a remote attacker to perform a cross-site scripting (XSS) attack. By leading an administrator or a user to a specially crafted page and performing a specific operation, the attacker can inject arbitrary script code. This can lead to the execution of malicious actions on the affected user's browser, potentially compromising their sensitive information or performing unauthorized actions.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
If upgrading immediately is not possible, a temporary workaround is to implement input validation and output encoding to prevent the execution of malicious scripts. This can be done by using security libraries or frameworks that provide protection against XSS attacks.
Conclusion
The EC-CUBE e-commerce platform is vulnerable to a cross-site scripting (XSS) attack. It is crucial to upgrade to the latest version of EC-CUBE to mitigate this vulnerability. If immediate upgrading is not possible, implementing input validation and output encoding can provide temporary protection. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for ec-cube/ec-cube →
FAQ
The vulnerability allows an attacker to inject arbitrary script code, potentially leading to the execution of malicious actions on the affected user's browser.
Users of EC-CUBE versions 3.0.0 to 3.0.18-p2 (EC-CUBE 3 series) and versions 4.0.0 to 4.0.5-p1 (EC-CUBE 4 series) are affected by this vulnerability.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your EC-CUBE installation is affected by this vulnerability. Simply upload your composer.lock file to the playground and it will provide real-time alerts for open-source vulnerabilities.
At the time of this report, there are no known public exploits for this vulnerability. However, it is important to patch your EC-CUBE installation to prevent any potential exploitation.
You can find more information about this vulnerability in the EC-CUBE advisory on GitHub: [link to advisory]
References
Related vulnerabilities
Recent vulnerabilities recorded for ec-cube/ec-cube.