Standfirst: A flaw now widely referred to as the php vulnerability has forced governments and companies across the world to pull websites offline this week, as organisations race to apply a patch before attackers exploit it further.

A security flaw now widely referred to as the php vulnerability has forced governments and businesses across the world to take websites offline this week as they rush to patch two newly discovered weaknesses in the PHP programming language.

According to Yahoo Sports, citing AFP, government agencies and companies shut down websites on Thursday to protect themselves after artificial intelligence uncovered critical flaws in PHP, with government-run sites in countries from Australia to the Netherlands affected. The cybersecurity firm Wiz estimated that PHP code helps run about 70 percent of the world’s websites, Yahoo Sports reports.

The Guardian reports that PHP is an open-source scripting language more than 30 years old, used to build widely-used systems including WordPress and Drupal, and that Wikipedia and Facebook are among the sites that run on it. In Australia alone, 391 government websites use a Drupal-run platform called GovCMS, according to the Guardian.

Why this matters to your business

The flaw works by corrupting a website’s memory through a specially crafted request, which could then “provide a direct path to the server’s file system or database”, according to the US National Security Agency, as reported by the Guardian. Security vendor Hadrian has dubbed the pair of vulnerabilities a PHP2Shell exploit, the Guardian reports.

If your business runs its website on WordPress, Drupal or another PHP-based platform, you may be exposed even if nobody on your team has ever written a line of code. Firms that have recently built or rebuilt a site, including those using tools covered in Smart SME’s piece on how AI now builds WordPress sites in minutes, should check with whoever hosts the site whether the patch has gone in.

What it means in practice

These vulnerabilities were found with help from artificial intelligence rather than a traditional human security audit. The Guardian reports that the PHP Foundation, the non-profit that maintains PHP, worked with Anthropic‘s frontier model to scan its code, and had PHP entered into OpenAI‘s Patch the Planet programme, which found the issue at the same time as an independent researcher in mid-August. Disclosure had been due for 22 October, but the Foundation brought it forward after the vulnerabilities began circulating on forums and social media, according to the Guardian.

That matters for small firms because Hadrian told the Guardian that “exploitation happening at scale” is already under way now the flaw is public. Amazon Threat Intelligence separately told the Guardian it had identified a PHP2Shell exploitation attempt four days before the public disclosure, and multiple proof-of-concept exploits on the day the embargo lifted.

What to do now

  • Ask your web developer or hosting provider this week, not next, whether your site or any internal system runs PHP, and whether the patch has been applied.
  • If you cannot confirm a patch is in, take the site offline temporarily. Hadrian told the Guardian: “Shutting down a service for a few hours costs far less than a compromised server.”
  • Check every instance, not just the main site. Don Smith, vice-president of threat intelligence at Sophos Counter Threat Unit, told the Guardian: “The immediate challenge is not simply installing a patch, but finding and managing every instance where PHP is running.”
  • Be wary of other businesses’ sites that have not gone down to patch. Sigi Goode, a professor of information systems at the Australian National University, told the Guardian: “The bigger concern is the websites that are not down today. Users should be wary of these, as they are clear targets.”
  • Check your backups are current and tested before you touch anything, as set out in Smart SME’s guide on the two numbers small IT teams need before backup.
  • Keep an eye on unusual account activity in the weeks after patching. Smart SME has covered how cyberattacks have jumped sharply and why some gangs now steal data rather than encrypt it, both relevant to what happens after a breach like this.

What is PHP?

PHP is an open-source scripting language, more than 30 years old, that underpins much of the internet, according to the Guardian. Content management systems and publishing platforms such as WordPress and Drupal are built on it.

Is my website affected?

Possibly, if it runs on PHP, WordPress or Drupal. The Guardian reports an estimated 70 percent of websites use PHP, with millions of sites potentially affected by the vulnerabilities.

How do I know if it has been patched?

Ask your hosting provider or developer directly. Patches are already available, and security firms quoted by the Guardian say the priority now is finding every place PHP runs in a business, not just the main website.

Takeaway: if your business has a website, ask your host or developer today whether it runs on PHP and whether the patch is in, because the flaw is now public and being exploited at scale.

Image: note.com