← All videos

PHP2Shell: Websites Went Dark Worldwide. Is Your Website Safe? (Do This Now)

This week websites around the world went offline. AI helped researchers find two critical flaws in PHP (PHP2Shell), the language behind about 70% of websites, including WordPress. Here is what happened and the 5 steps to protect your site.

What this video covers

This week websites around the world went offline. AI helped researchers find two critical flaws in PHP (PHP2Shell), the language behind about 70% of websites, including WordPress. Here is what happened and the 5 steps to protect your site.

Key points

What happened

  • PHP2Shell = two critical PHP bugs (rated 9.2/10). Worst case: an attacker runs code on the server without a password.
  • Found by researchers from OpenAI, Wiz and Calif with the help of AI. Wiz said the bugs were hidden for about 10 years.
  • The NSA and Europe's cybersecurity agency told companies to act right away. Some sites in the Netherlands and Ireland went offline while they fixed it.
  • Fixed on October 21: PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35. Researchers reported attacks the same day.

Updating WordPress does NOT fix this. The bug is in PHP, on the server.

5 steps

  • Check your PHP version: WordPress → Tools → Site Health → Info → Server. 8.1 or older gets no new fix from PHP.
  • Ask your host and get a clear yes: is the fix for both PHP2Shell bugs installed? A firewall rule is not the same as patched PHP. (Hostinger posted that it tested its platform, found it not vulnerable, added extra protection and is rolling out patched PHP.)
  • Old PHP? Full backup first, then switch to PHP 8.3 or 8.4 and test your pages, forms and checkout.
  • Look for signs of a hack: unknown admin users, plugins you never installed, .php files in uploads, spam pages on Google, Search Console or host warnings.
  • Keep automatic backups, change every password if anything looks wrong, and consider the free Cloudflare plan.

If you build websites: offer your clients a security check + a monthly care plan.

Chapters

  • 0:00 Websites went dark
  • 0:27 What is PHP2Shell?
  • 1:22 Step 1: check your PHP version
  • 1:37 Step 2: ask your host
  • 2:15 Step 3: back up & upgrade
  • 2:33 Step 4: signs of a hack
  • 2:50 Step 5: backups & passwords
  • 3:09 The money angle

Read next

Prices and offers are as shown in the video and checked when it was made (US, USD, before tax). They change by country and over time, so always check the final cart.

Full transcript

This week, websites around the world went dark. Government sites in Europe were taken offline. The reason? AI helped researchers find two critical flaws in PHP, the language behind about seventy percent of all websites, including WordPress. If you have a website, here is what happened, and exactly what to do in the next ten minutes.

Hey, I'm Adam, and welcome to Build and Earn AI. Step number two is the one most people get wrong. So what happened? The flaws are called PHP2Shell. Two bugs, both rated nine point two out of ten. In the worst case, an attacker could run their own code on a server, without any password.

Researchers from OpenAI, Wiz, and Calif found them with the help of AI. The scary part: Wiz said the bugs had been hiding in PHP for about ten years. The NSA and Europe's cybersecurity agency told companies to act right away, and some sites in the Netherlands and Ireland went offline while they fixed it.

On October twenty first, PHP released fixed versions: eight point five point twelve, eight point four point twenty seven, eight point three point thirty six, and eight point two point thirty five. And security researchers reported attacks starting the same day. Here's the important part. Updating WordPress does not fix this. The bug is in PHP, on the server.

So let's go through five steps. Step one: check your PHP version. In WordPress, go to Tools, Site Health, Info, then Server, and look at PHP version. If you're on eight point one or older, that branch gets no new fix from PHP, so you need to move up. Step two: ask your host, and get a clear yes.

On shared hosting, updating PHP is your host's job, not yours. Check their status page or ask support: is the fix for both PHP2Shell bugs installed? A firewall rule alone is not the same as a patched PHP. For example, Hostinger posted that their platform was tested and not vulnerable, that they added extra protection, and that they're rolling out the patched PHP versions, with no action needed from customers.

Quick question. Did your host tell you anything about this? Yes, one, or nothing at all, two? Comment one or two. Step three: if you're on an old PHP, back up and upgrade. Take a full backup first. Then switch the site to PHP eight point three or eight point four from your hosting panel, and test your main pages, forms, and checkout.

Old plugins sometimes break, so test before you celebrate. Step four: look for signs of a hack. Check for admin users you don't recognize, plugins you never installed, PHP files inside the uploads folder, spam pages when you search site colon your domain on Google, and any warnings in Google Search Console or from your host.

Step five: backups, passwords, and a safety net. Keep automatic backups you can restore in minutes. If anything looks wrong, restore a clean backup and change every password: WordPress, hosting, and database. And a free Cloudflare plan can block known attacks, if your traffic goes through it. And here's the money angle. Most small businesses have no idea this even happened.

If you build websites, this is the perfect reason to message your clients and offer a security check, plus a monthly care plan for updates and backups. That's real recurring income. The lesson: choose hosting that patches fast and gives you easy backups. My hosting link and the coupon code LEARN2EARN are in the description.

Subscribe for more real ways to build and earn with AI, and tell me in the comments: did your host tell you anything, yes, one, or nothing, two? I'll see you in the next one.

Get the next tutorial in your inbox

One short email when a new build is out, plus the best hosting deals. No spam, unsubscribe anytime.