If you have a website made with WordPress or use a web browser-based system on your servers, your network may be at risk of infiltration without the intervention of a fast-acting IT support team.

The UK’s National Cyber Security Centre issued an urgent warning to businesses in the UK, echoed around the world, that a recently discovered vulnerability in a tool used in 70 per cent of websites could potentially allow code to be injected into your servers and lead to potential breaches.

A security update has been made available and IT teams across the world have been working frantically to patch out the potential exploit in every part of a company’s computer systems to ensure that systems can run safely and smoothly.

To understand why it was such a significant exploit, it is important to explore what PHP is, what it does, what the exploit could do to your systems and what you can do to stop it.

What Is PHP?

Recursively short for PHP: Hypertext Preprocessor, PHP is a scripting language installed on servers that is used to create dynamic webpages, particularly those that interact with databases, such as websites with account systems.

Whilst never intended to be a scripting language, its flexibility and ability to work with a wide array of functions have turned it into a remarkably powerful server-side scripting tool, doing a wide range of processes before delivering the results to a particular client.

It is most commonly used for content management and online shopping systems, with the highly popular content management system WordPress being the most common use of the system.

However, whilst often associated with external tools, it is also used within businesses for account management, with systems such as Moodle showing its flexibility. 

It is also used by some programmers working in C++ to write extensions to codebases for software projects.

This means that a potential exploit of PHP would be a massive point of attack that could render a huge amount of the internet vulnerable.

What Is PHP2Shell And What Can It Do To Your Systems?

PHP2Shell is two vulnerabilities found in many older versions of PHP which allow someone to take advantage of an error to run lines of code without permission, even before an application has run on the server.

How both vulnerabilities work is that, in certain instances, PHP leaves corruptions in memory that can, in the right circumstances, be used to activate commands on the server, which could allow them to take complete control, a process known as remote code execution (RCE).

This can be used to deface websites, access sensitive data, read passwords and authentication certificates and even steal private information depending on how it is stored.

The exploit affects PHP versions 5.4 up to 8.5, which is any version of PHP from 2012 up until the present day, with emergency patches deployed for versions 8.2, 8.3, 8.4 and 8.5.

Whilst it could theoretically affect anything running these versions of PHP, the remote execution aspect of PHP2Shell means that internet-facing systems are most vulnerable. 

What Should You Do To Stop Any Negative Effects?

The first step you should take is to ask your IT team about PHP2Shell; they will be aware of the issue and be able to tell you what it affects and what they have done to fix the exploit.

Here are the steps you or your IT team should take to help close the exploit.

  1. Audit your systems and identify which ones are running some form of PHP, as well as their level of exposure to the exploit.
  2. Update all of your servers to the most recent version of PHP or install an emergency patch. Linux distributions may incorporate them into their package managers.
  3. If you cannot update PHP itself, follow PHP’s mitigation advice to minimise the potential for the two most common types of errors that can cause a remote code execution state.
  4. If you cannot update PHP or apply these mitigations, take the system offline until you can. Many websites went offline in the days following the announcement of the exploit and returned once fixes were applied.
  5. If you cannot update, apply mitigations or take the system down, assess it to see if it has been compromised by an attacker before upgrading. Your IT team or a cybersecurity expert can help you with this.
  6. Keep track of any affected software with a dependency on PHP, as they may provide further security updates. Apply them as soon as possible and keep up to date with other security updates.
Main Logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.