Zero-Day Advisory

Fortinet Discovers Magento Stored Cross-Site Scripting Vulnerability

Summary

Fortinet's FortiGuard Labs has discovered a stored Cross-Site Scripting (XSS) vulnerability in Magento Commerce and Open Source.


Magento is an e-commerce platform written in PHP. According to the Alexa top 1M e-commerce platforms for 2018, the e-commerce platform Magento Commerce currently enjoys more than a 14% market share, making it the second largest e-commerce platform in the world.


A stored XSS vulnerability has been discovered in Magento Commerce and Open Source 2.1 prior to 2.1.17, 2.2 prior to 2.2.8, 2.3 prior to 2.3.1. It is caused by failing to sanitize user-supplied data when creating an attribute in the product configurations section. An authenticated user with privileges to the Admin product configurations section can exploit the stored XSS vulnerability to embed malicious code.


Solutions

FortiGuard Labs released the following FortiGate IPS signature which covers this specific vulnerability:

Adobe.Magento.ProductConfigurations.Attribute.XSS
Released Nov 07, 2018

Users should apply the solution provided by Magento.

Timeline

Fortinet reported the vulnerability to Magento on November 1, 2018.

Magento confirmed the vulnerability on November 7, 2018.

Magento patched the vulnerability on March 26, 2019.

Acknowledgement

This vulnerability was discovered by Zhouyuan Yang of Fortinet's FortiGuard Labs.

IPS Subscription

Fortinet customers who subscribe to Fortinet's intrusion prevention (IPS) service should be protected against this vulnerability with the appropriate configuration parameters in place. Fortinet's IPS service is one component of FortiGuard Subscription Services, which also offer comprehensive solutions such as antivirus, Web content filtering and antispam capabilities. These services enable protection against threats on both application and network layers. FortiGuard Services are continuously updated by FortiGuard Labs, which enables Fortinet to deliver a combination of multi-layered security intelligence and true zero-day protection from new and emerging threats. These updates are delivered to all FortiGate, FortiMail and FortiClient products. Fortinet strictly follows responsible disclosure guidelines to ensure optimum protection during a threat's lifecycle.