Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

Critical Flaw in SEO Plugin Exposed Many WordPress Sites to Attacks

A critical vulnerability in the Rank Math SEO plugin for WordPress could allow attackers to lock administrators out of their own websites, WordPress security company Defiant reports.

A critical vulnerability in the Rank Math SEO plugin for WordPress could allow attackers to lock administrators out of their own websites, WordPress security company Defiant reports.

Meant to help site owners get access to search engine optimization (SEO) tools that would improve their SEO and attract more traffic, the plugin has over 200,000 installations.

Featuring a CVSS score of 10, the vulnerability impacts the plugin’s ability to update metadata on posts. For this feature, the plugin registered a REST-API endpoint, rankmath/v1/updateMeta, but the lack of a permission_callback for capability checking exposes it to attacks.

The endpoint uses the update_metadata function to delete or update metadata for posts, comments, and terms, but can also update metadata for users, which results in this critical vulnerability.

The user permissions in WordPress are stored in the usermeta table, and the flaw could result in an unauthenticated attacker granting any registered user administrative privileges.

What’s more, the attacker could completely revoke an existing administrator’s privileges, which would essentially mean locking the admin out of their own website.

“Note that these attacks are only the most critical possibilities. Depending on the other plugins installed on a site, the ability to update post, term, and comment metadata could potentially be used for many other exploits such as Cross-Site Scripting (XSS),” Defiant explains.

Another vulnerability the security firm discovered in Rank Math could result in the creation of redirects via an unprotected REST API endpoint.

Advertisement. Scroll to continue reading.

The issue resides in the failure to include a permission_callback for capability checking in the registered REST-API endpoint rankmath/v1/updateRedirection.

A function called by the endpoint could be used to create new redirects or modify existing redirects. It did not allow redirects to existing files or folders on the server, including the site’s main page, thus limiting the damage an unauthenticated attacker could cause.

“While an attacker could create a redirect from most locations on the site, including new locations, or any existing post or page other than the homepage, they could not redirect visitors immediately upon accessing the site,” Defiant notes.

The vulnerabilities were discovered on March 23 and a patch was released on March 26. Site admins are advised to update to the patched version of Rank Math as soon as possible.

“These vulnerabilities have been fully patched in version 10.0.41, and we strongly recommend that all users of this plugin upgrade to the latest version available immediately,” Defiant concludes.

Related: WPvivid Backup Plugin Flaw Leads to WordPress Database Leak

Related: Flaws in Popup Builder Plugin Impacted Over 100,000 WordPress Sites

Related: WordPress Websites Hacked via Vulnerabilities in Two Themes Plugins

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

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.

Gain valuable insights from industry professionals who will help guide you through the intricacies of industrial cybersecurity.

Register

Join us for an in depth exploration of the critical nature of software and vendor supply chain security issues with a focus on understanding how attacks against identity infrastructure come with major cascading effects.

Register

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Vulnerabilities

Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.

Vulnerabilities

The latest Chrome update brings patches for eight vulnerabilities, including seven reported by external researchers.