Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

Persistent XSS Patched in WooCommerce WordPress Plugin

An update released this week by the developers of WooCommerce, the popular ecommerce plugin for WordPress, patches a flaw that could allow attackers to hijack vulnerable websites.

Han Sahin, co-founder of Dutch security firm Securify, discovered that WooCommerce is plagued by a persistent cross-site scripting (XSS) vulnerability.

An update released this week by the developers of WooCommerce, the popular ecommerce plugin for WordPress, patches a flaw that could allow attackers to hijack vulnerable websites.

Han Sahin, co-founder of Dutch security firm Securify, discovered that WooCommerce is plagued by a persistent cross-site scripting (XSS) vulnerability.

An attacker can exploit the flaw by creating a special image file that contains malicious JavaScript code in the metadata. WooCommerce uses information from the metadata to automatically fill in the “caption” field of an uploaded image.

If the attacker can convince an administrator to upload a malicious image as a product image or a gallery item, their code is injected into the targeted website. According to Sahin, an attacker can leverage the flaw to steal session tokens or login credentials and use them to perform actions on the victim’s behalf.

The vulnerability was addressed by WooCommerce developers this week with the release of version 2.6.3. They noted that the issue was related to how prettyPhoto, a jQuery-based lightbox clone, handled image captions.

WooCommerce was acquired last year by Automattic, the company behind WordPress.com and a core contributor to the WordPress project. The plugin is currently used on more than one million websites.

Advertisement. Scroll to continue reading.

Ecommerce websites are often targeted by threat actors. Internet security firm Sucuri reported earlier this week that attackers have been launching phishing operations aimed at the checkout pages of ecommerce sites, including ones running WooCommerce. Cybercriminals have been planting malicious code on the checkout pages of legitimate websites in an effort to redirect users to phishing checkout pages.

The WooCommerce XSS is just one of the many vulnerabilities found by researchers as part of Summer of Pwnage, a WordPress-focused hacker event hosted by Securify between July 1 and 29. Participants from all around the world have so far identified 61 flaws in the WordPress core and various popular plugins.

“It’s great to work with plugin writers – they quickly understand the security problem and fix issues very fast,” Sahin told SecurityWeek. “WordPress has a lot of security features in the code base – it is not as bad as some people in infosec might think.”

“The biggest problem I see is the growing number of (uncontrolled) plugins,” the researcher explained. “A good suggestion would be to make an application filter in the WordPress core that forces a CSRF token on every CRUD [create, read, update, and delete] request to reduce the remote factor of issues.”

Related: Hacked WordPress Sites Target Random Users

Related: C99 Webshell Increasingly Used in WordPress Attacks

Written By

Eduard Kovacs (@EduardKovacs) is senior managing editor at SecurityWeek. He worked as a high school IT teacher before starting a career in journalism in 2011. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

You must be logged in to post a comment Login

Leave a Reply

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

SecurityWeek’s Cyber AI & Automation Summit pushes the boundaries of security discussions by exploring the implications and applications of predictive AI, machine learning, and automation in modern cybersecurity programs.

Register

Join to learn the four levels of architecting security into the agentic SDLC – from securing the code your developers' agents write to running a coordinated system of security agents you've built yourself.

Register

People on the Move

Jensen Huang has been reinstated as President and CEO at NVIDIA.

Lindsey Cerkovnik has joined Anthropic as Head of Vulnerability Disclosure and Security Community.

Kirsten Davies has been appointed National Cyber Director.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.