
The favored WordPress plugin Gravity Kinds has been compromised in what appears a supply-chain assault the place handbook installers from the official web site had been contaminated with a backdoor.
Gravity Kinds is a premium plugin for creating contact, fee, and different on-line kinds. Based mostly on statistic information from the seller, the product is isntalled on round a million web sites, some belonging to well-known organizations like Airbnb, Nike, ESPN, Unicef, Google, and Yale.
Distant code execution on the server
WordPress safety agency PatchStack says it obtained a report earlier at the moment about suspicious requests generated by plugins downloaded from the Gravity Kinds web site.
After analyzing the plugin, PatchStack confirmed that it obtained a malicious file (gravityforms/frequent.php) downloaded from the seller’s web site. Nearer examination revealed that the file initiated a POST request to a suspicious area at “gravityapi.org/websites.”
Upon additional evaluation, the researchers discovered that the plugin collected in depth web site metadata, together with URL, admin path, theme, plugins, and PHP/WordPress variations, and exfiltrates it to the attackers.
The server response contains base64-encoded PHP malware, which is saved as “wp-includes/bookmark-canonical.php.”
The malware masquerades as WordPress Content material Administration Instruments that allows distant code execution with out the necessity to authenticate utilizing features like ‘handle_posts(),’ ‘handle_media(),’ ‘handle_widgets().’
“All of these features could be referred to as from __construct -> init_content_management -> handle_requests -> process_request perform. So, it principally could be triggered by an unauthenticated consumer,” Patchstack explains.
“From the entire features, it is going to carry out an eval name with the user-supplied enter, leading to distant code execution on the server,” the researchers mentioned.
RocketGenius, the developer behind Gravity Kinds, was knowledgeable of the problem, and a employees member informed Patchstack that the malware affected solely handbook downloads and composer set up of the plugin.
Patchstack recommends that anybody who downloaded Gravity Kinds beginning yesterday reinstall the plugin by getting a clear model. Admins must also scan their web sites for any indicators of an infection.
In accordance with Patchstack, the domains facilitating this operation had been registered on July 8.
Hackers add admin account
RocketGenius has revealed a autopsy of the incident confirming that solely Gravity Kinds 2.9.11.1 and a pair of.9.12 obtainable for handbook obtain between July 10 and 11 had been compromised.
If admins ran a composer set up for model 2.9.11 on any of the 2 dates, they obtained an contaminated copy of the product.
“The Gravity API service that handles licensing, automated updates, and the set up of add-ons initiated from throughout the Gravity Kinds plugin was by no means compromised. All bundle updates managed by means of that service are unaffected” – RocketGenius
RocketGenius says that the malicious code blocked replace makes an attempt, contacted an exterior servers to fetch extra payloads, and added an admin account that gave the attacker full management of the web site.
The developer additionally gives strategies for directors to verify for attainable an infection by following particular hyperlinks on their web sites.
