Table of Contents
  • Home
  • /
  • Blog
  • /
  • How to Fix a Critical 0-day WordPress Plugins Vulnerability (CVE-2021-24370) Found in Fancy Product Designer
June 5, 2021
|
7m

How to Fix a Critical 0-day WordPress Plugins Vulnerability (CVE-2021-24370) Found in Fancy Product Designer


How To Fix A Critical 0 Day Wordpress Plugins Vulnerability Cve 2021 24370 Found In Fancy Product Designer

The Wordfence Threat Intelligence team has discovered a critical 0-day WordPress plugins vulnerability (CVE-2021-24370) on May 31, 2021. This file upload vulnerability is being manipulated in the Fancy Product Designer, a WordPress plugin installed on over 17,000 websites. They discovered the vulnerability and reported the problem to the plugins developers on May 31. Although they have acknowledged the flaw and released a patched version 4.6.9 on June 2nd. In this post, we are going to tell about how to Fix a Critical authentication bypass 0-day WordPress Plugins Vulnerability (CVE-2021-24370) found in Fancy Product Designer.

 The team contacted the developers the same day and got a response within a day. They sent over the complete disclosure and received a response on June 1, 2021. Because of the vulnerability is being attacked actively, the team is disclosing it with minimal details until users update the patched version. It alerts the community to take precautions to keep the websites protected. 

As its a critical 0-day WordPress plugin vulnerability (CVE-2021-24370) under attack, its important to have a brief introduction to WordPress and its plugins.

What Is WordPress? What Is a WordPress Plugin?

WordPress is a free and open-source website creation platform. Its a content management system (CMS) developed in PHP and uses a MYSQL database. WordPress is the most powerful and easiest website builder tool in existence today. 

A WordPress plugin is a bit of code that plugs into the self-hosted WordPress websites. Its something that can add new functionality to your website or enhance the existing functionality on your website. Using plugins, you can make everything from small tweaks to large changes to your website. For example, a plugin can turn your simple website into an e-commerce store, forum, or social network.

What Is a Zero-Day Vulnerability?

A zero-day vulnerability is a flaw in a device or system that has been discovered but not patched yet. And an exploit that attacks a zero-day flaw is known as a zero-day exploit. These vulnerabilities were discovered before software developers, and security researchers got to know about them. Before issuing a patch, a zero-day vulnerability can pose a potential risk to users. Zero-day refers to the fact that software developers have zero days to resolve the issue that has been exposed and already exploited by the attackers.

Introducing Fancy Product Designer

Fancy Product Designer is a WordPress plugin that lets organizations provide customizable products to customers, allowing them to design items ranging from T-shirts to phone cases. It gives you the ability to upload PDF files and images that can be added to products. But unfortunately, the plugin has some checks in place to prevent malicious files from being uploaded. These checks were inadequate and could be bypassed easily. It allows hackers to upload the executable PHP files to any website with the plugin installed. Hackers can effectively gain Remote Code Execution on an affected site and allow a complete website takeover. 

How Are Attackers Abusing This 0-day WordPress Plugins Vulnerability (CVE-2021-24370)?

The hackers were exploiting the 0-day WordPress plugin vulnerability (CVE-2021-24370) to bypass authentication and allow unauthenticated users to log in to an account by entering the related username. It also allows users to create accounts using arbitrary roles, such as admin. These problems can occur even if the login widget is not active and the registration is disabled.

 WPScan, a web-hosting company, first reported the bug as a 0-day WordPress plugin vulnerability under active attack by hackers. As cyber criminals using the exploit in the wild, Wordfence noticed that IoC pointed to hackers creating privileged user accounts and using them to compromise the website. 

Researchers said that We believe that hackers are adding accounts with usernames as registered email addresses depending on how the vulnerability creates accounts, and in some instances, installing a malicious plugin named wpstaff . 

It means any website running this plugin is at risk, according to Wordfence posting.

Targets of This 0-day WordPress Plugins Vulnerability (CVE-2021-24370)

Fancy Product Designer, a famous WordPress plugin, is affected by the 0-day vulnerability. Additionally, researchers found vulnerabilities in WP Super Cache and Elementor that, if exploited successfully, attackers can take over a website and run arbitrary code on it. As of now the flaw has not been seen exploited in the wild.

Summary of This 0-day WordPress Plugins Vulnerability (CVE-2021-24370)

Description: Unauthenticated Arbitrary File Upload and Remote Code ExecutionAffected Plugin: Fancy Product DesignerPlugin Slug:fancy-product-designerAffected Versions: < 4.6.9CVE ID: CVE-2021-24370CVSS Score: 9.8 (Critical)CVSS Vector:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HResearcher/s: Charles Sweethill/Ram Gall

How to Fix a Critical 0-Day WordPress Plugins Vulnerability (CVE-2021-24370)?

The overall process is very simple and very straight. Here you see the complete process how to Fix Fancy Product Designer vulnerability CVE-2021-24370.

How to Fix Fancy Product Designer vulnerability CVE-2021-24370

  1. login to codecanyon.net.

  2. visit the product page at https://codecanyon.net/item/fancy-product-designer-woocommercewordpress/6318393

  3. Download the plugin file from the right-hand side of the product page.

  4. After your download the patched version of the plugin Fancy Product Designer v4.6.9.

  5. Login to your WordPress site.

  6. Go to Plugins->Add New->Upload Plugin to upload the patched plugin.

  7. Activate the plugin if not activated.

Indicator of Compromise Recorded During The Analysis of 0-day WordPress Plugins Vulnerability (CVE-2021-24370)

In most instances, a successful attack results in a file with a PHP extension and a unique ID that will appear in the subfolder of
wp-admin
or
wp-content/plugins/fancy-product-designer/inc
with the date when the file was uploaded. For example,
wp-content/plugins/fancy-product-designer/inc/2021/06/04/4fa00001c720b30102987d980e62d5e4.php
or
wp-admin/2021/06/04/1d4609806ff0f4e89a3fb5fa35678fa0.php
 
Most of the attacks against 0-day vulnerability come from these IP addresses
92.53.124.123
69.12.71.82
46.53.253.152

The filenames associated with this vulnerability:
ass.php – MD5 3783701c82396cc96d842839a291e813. This is the initial payload. It downloads additional malware from another 3rd party site.
op.php – MD5 29da9e97d5efe5c9a8680c7066bb2840. A password-protected Web shell.
prosettings.php – MD5 e6b9197ecdc61125a4e502a5af7cecae. A Webshell found in older infections.
4fa00001c720b30102987d980e62d5e4.php – MD5 4329689c76ccddd1d2f4ee7fef3dab71. This payload decodes and loads a separate Web shell.
4fa00001c720b30002987d983e62d5e1.jpg – MD5 c8757b55fc7d456a7a1a1aa024398471. The compressed webshell loaded by 4fa00001c720b30102987d980e62d5e4.php. Cannot be executed without the loader script.

Countermeasures Suggested by WordPress

Zero-day vulnerabilities are critical. Here are some methods you can use to protect against them.

#1. Statistical Techniques

Statistical techniques define how a usual activity looks on a network. It will alert if behavior or traffic deviated from the general profile. For example, if a user on a secure network receives a message from an unknown source with a file attachment, the statistical algorithm flags the message for further inspection.

#2. Behavior-Based Defense

You can implement this technique using various behaviors. But the common way to implement it is using a honeypot. Its a machine that is less secure and used to detect attackers when they attack a machine with weak security. In such a situation, a honeypot is monitored for unusual changes.

#3. Signature-Based Defense

This technique leverages pattern matching to recognize the patterns in known vulnerabilities. However, this technique is not perfect for identifying specific code in the 0-day vulnerability, but it can identify specific attacks like SQL injection or XSS.

#4. Hybrid Techniques

These techniques use a combination of behavior, statistical, and traditional signature-based algorithms. Hybrid techniques are more efficient as they avoid weaknesses in a single detection technique.

Thanks for reading this post. Please share this post with those who are working on the WordPress site and make them aware of this critical vulnerability.

Arun KL

Arun KL is a cybersecurity professional with 15+ years of experience in IT infrastructure, cloud security, vulnerability management, Penetration Testing, security operations, and incident response. He is adept at designing and implementing robust security solutions to safeguard systems and data. Arun holds multiple industry certifications including CCNA, CCNA Security, RHCE, CEH, and AWS Security.

Recently added

Application Security

View All

Learn More About Cyber Security Security & Technology

“Knowledge Arsenal: Empowering Your Security Journey through Continuous Learning”

Cybersecurity All-in-One For Dummies - 1st Edition

"Cybersecurity All-in-One For Dummies" offers a comprehensive guide to securing personal and business digital assets from cyber threats, with actionable insights from industry experts.

Tools

Featured

View All

Learn Something New with Free Email subscription

Subscribe

Subscribe