Researchers at Wordfence have found critical vulnerabilities in a popular WordPress plugin called PHP Everywhere, affecting thousands of websites.

The remote code execution bug in one of the bugs found will let even a general subscriber inject malicious PHP code in a target site. Websites having this plugin and running on WordPress v2.0.3 and below are vulnerable, say researchers. Although, a patch update is available.

RCE Bug in a WordPress Plugin

In the routine of finding new bugs affecting WordPress sites, the Wordfence team has found three critical vulnerabilities in a popular plugin called PHP Everywhere. This is being used by over 30,000 WordPress websites in wild, say researchers.

Their findings include as below;

  • CVE-2022-24664 โ€“ RCE vulnerability exploitable by contributors via the pluginโ€™s metabox. An attacker would create a post, add a PHP code metabox, and then preview it. (CVSS v3 score: 9.9)
  • CVE-2022-24663 โ€“ Remote code execution flaw exploitable by any subscriber by allowing them to send a request with the โ€˜shortcodeโ€™ parameter set to PHP Everywhere, and execute arbitrary PHP code on the site. (CVSS v3 score: 9.9)
  • CVE-2022-24665 โ€“ RCE flaw exploitable by contributors who have the โ€˜edit_postsโ€™ capability and can add PHP Everywhere Gutenberg blocks. Default security setting on vulnerable plugin versions isnโ€™t on โ€˜admin-onlyโ€™ as it should be. (CVSS v3 score: 9.9)

Itโ€™s unusual that all the three bugs have very high severity scores (9.9/10), which are lurking around without knowing the developers. The third bug from the above list is even more critical, as it can be exploited by a subscriber.

Anyone registering as a general subscriber to a target site can have the privilege of executing malicious PHP code, leading to site takeover ultimately. Although the first two bugs need at least contributor access to the target site, theyโ€™re still significant.

Wordfence team has spotted these vulnerabilities on January 4, 2022, and informed the PHP Everywhere maker immediately. Though the author released patches for these bugs on January 10, 2022, itโ€™s still the responsibility of the WordPress site owners to update the plugin from their end.

And to note, the current patch update (v.3.0.0) is only good for sites with Block Editors, leaving the ones with Classic editors vulnerable. As of now, itโ€™s found that only half of the total 30,000 sites have updated this plugin.

LEAVE A REPLY

Please enter your comment!
Please enter your name here