Barsec Cyber Intel

PHP2Shell: Two Critical PHP Flaws Are Being Actively Exploited

If your website or server uses PHP, two flaws can let an attacker run commands without logging in. Patched versions are available now.

What happened

PHP is the engine behind a huge number of websites and web applications, including many WordPress, Drupal and Joomla sites. These vulnerabilities are in PHP itself, not in a specific plugin or theme. If a server is running a vulnerable PHP version, an attacker can send specially crafted web requests and potentially make the server run commands without needing a username or password. That can lead to stolen data, malicious files being installed, or a website and server being taken over. The risk is no longer theoretical. The vulnerabilities were added to CISA's Known Exploited Vulnerabilities catalog and security researchers have confirmed real-world exploitation. This is a patch-now issue for internet-facing PHP systems.

Why this matters

Small businesses often do not manage PHP directly. It may be controlled by a web host, managed provider, control panel, appliance, or the server underneath a WordPress site. Your website software may look fully updated while the PHP runtime underneath it is still vulnerable.

What you should do

  • If you have a website, especially one built with WordPress, Drupal, Joomla, or another PHP-based platform, start by contacting your hosting provider. Ask them whether your server is running one of the patched PHP versions and what steps they have taken to protect customers from these vulnerabilities.
  • You do not need to understand PHP versions or server configuration yourself. Your hosting provider should be able to tell you whether the underlying PHP software has been updated and whether any action is required on your end.
  • If you manage your own server or have an IT provider, ask them to verify that PHP has been updated to a fixed, supported version and that the server has been checked for signs of compromise.
  • If your hosting provider cannot give you a clear answer, does not respond, or you are not sure what any of this means, send Barsec a message. We can help check what your site is running, determine whether you are exposed, and help get you patched and protected.

Sources