Security experts from WordFence have discovered a zero-day vulnerability in the ThemeREX Addons that was actively exploited by hackers in the wild to create user accounts with admin permissions.
According to WordFence, the ThemeREX
This plugin was developed by the company ThemeRex to allow its customers to configure and installs one of over 460 commercial WordPress themes and templates that are available for sale in their online shop.
The vulnerability resides in a WordPress REST-API endpoint registered by the plugin which allows any PHP function to be executed without administrative permissions.
“One of the plugin’s functions registers a WordPress REST-API endpoint. When doing so, it does not verify that a request is coming from an administrative user. While this is not cause for concern on its own, the endpoint allows any PHP function to be executed, rather than being limited to a select few functions.” read the analysis published by WordFence. “The most worrisome capability that we are seeing actively attacked is the ability to create a new administrative user, which can be used for complete site takeover.”
A remote attacker could exploit the flaw to execute arbitrary code on WordPress installs running the flawed plugin, including code that can inject administrative user accounts.
Unfortunately, a patch has yet to be released, for this reason, experts suggest removing the ThemeREX
“At the time of writing, this vulnerability is being actively exploited, therefore we urge users to temporarily remove the ThemeREX
The experts did not publish technical details of the zero-day because ongoing attacks are already exploiting it in the wild.
“We have intentionally provided minimal details in this post in an attempt to keep exploitation to a bare minimum while also informing WordPress site owners of this active campaign,” conclude the post.
“For the time being, we urge that site owners running the ThemeREX
Recently the issues with other WordPress plugins made the headlines:
(SecurityAffairs – hacking, IOTA foundation)