Lucian Constantin
CSO Senior Writer

Critical vulnerabilities patched in Magento e-commerce platform

news
Jan 25, 20162 mins

Stored XSS bugs could let hackers hijack administrative accounts

If you’re running an online shop based on the Magento e-commerce platform, it’s a good idea to update it as soon as possible. The latest patches fix critical vulnerabilities that could allow attackers to hijack administrative accounts.

One issue was discovered by researchers from Web security firm Sucuri and stems from improper validation of email addresses in the customer registration form.

The flaw allows a malicious user to include JavaScript code in the email field, leading to a so-called stored cross-site scripting (XSS) attack. The JavaScript code is saved along with the form and is triggered when the user account is listed in the website’s back-end panel.

The issue is rated as critical because the rogue code can hijack an administrator’s authenticated session or can instruct his browser to perform a rogue action on the website, such as adding another administrator account with attacker-supplied credentials.

The vulnerability affects Magento Community Edition prior to version 1.9.2.3 and Magento Enterprise Edition prior to version 1.14.2.3. Magento also released a patch bundle last week called SUPEE-7405 that can be applied to older versions.

The bundle also includes fixes for 19 other flaws, including a similar stored XSS issue in the order comments form and one in the processing of the HTTP_X_FORWARDED_FOR header for the customer’s IP address. Other issues fixed include information leaks, CAPTCHA bypasses, cross-site request forgery issues, malicious file uploads and denial-of-service against the newsletter function.

Some of these flaws also affect Magento 2.x CE and EE. Version 2.0.1 was released for both editions in order to address them, along with some critical stored XSS flaws that only exist in the 2.x versions.

“If you’re using a vulnerable version of Magento, update/patch as soon as possible,” said Marc-Alexandre Montpas, the Sucuri researcher who found one of the stored XSS flaws, in a blog post Friday.

According to the company that develops the e-commerce platform, Magento is used by over 200,000 companies, including many popular brand owners. A 2015 survey of the top 1 million websites by traffic found that Magento is used by around 30 percent of their online shops, making it the most popular e-commerce platform.

Magento-based websites have been the target of large-scale attacks before, so they represent an attractive target for attackers. In October, thousands of online shops running the platform were infected with the Neutrino exploit kit.

Lucian Constantin

Lucian Constantin writes about information security, privacy, and data protection for CSO. Before joining CSO in 2019, Lucian was a freelance writer for VICE Motherboard, Security Boulevard, Forbes, and The New Stack. Earlier in his career, he was an information security correspondent for the IDG News Service and Information security news editor for Softpedia.

Before he became a journalist, Lucian worked as a system and network administrator. He enjoys attending security conferences and delving into interesting research papers. He lives and works in Romania.

You can reach him at lucian_constantin@foundryco.com or @lconstantin on X. For encrypted email, his PGP key's fingerprint is: 7A66 4901 5CDA 844E 8C6D 04D5 2BB4 6332 FC52 6D42

More from this author