In October 2018, in a popular plugin for generating accelerated mobile pages AMP for WP, a vulnerability was discovered that allows any registered user to gain administrator privileges. NowWordPress sites with this plugin are underXSS-attack, which aims to create a "fake" administrators.
The error that allows to increase the rights of the user is the lack of verification of the rights to perform administrator actions in older versions of the plugin. Since version 0.9.97.20, released in early November 2018, the problem has been solved. But the lack of automatic updating of plugins on many WordPress sites makes them vulnerable.
WordFence information security specialist Mikey Veenstrasaid that a large-scale automated XSS attack is now under way, exploiting open vulnerability.The malicious script is located at https: // sslapis [.] Com / assets / si / stat.js . Running the script from the admin browser will create a new one, but already under the control of intruders. This is done through a hidden iframe element that simulates the registration of a new user and sends a click () event to “push” the send data button.
In this way, an administrator account with the user name supportuuser and the address email@example.com is added to the target site. The script analyzes the list of plugins and tries to install a php backdoor.
The script reads variables added to the URL of the hacked plug-in, assigning them as environment variables. This allows you to use any commands from the attacker:
WordPress site admins are recommended:check the list of administrators and remove unknowns; update AMP for WP to version 0.9.97.20 or higher; check the activity of the WooCommerce plugin, which is also subject to XSS attack.
In June 2018, RIPS employees reported a WordPress vulnerability that allows malicious code to be loaded into the system and delete critical files. In November 2018, they also discovered a gap in the WooCommerce plugin for this CMS.