The app is the new front door: why hardening your server is not enough

Part 2: I locked down my server, then realised the bigger risk was in my web apps. The ideas I used to harden them, this week's PHP, Nginx and Linux warnings with where to get the patches, and why AI makes this urgent.

By Faysal Aziz

Edited and approved by Faysal Aziz

Published

Hooded figure with a hidden face in front of falling green code, with the headline The app is the new front door, Part 2
Banner image generated with ChatGPT.

Why I went further

In Part 1, 8,000 break-in attempts in one day: how I locked down my server, I locked the doors and windows of my server. Firewall, SSH rules, banning the guessers, HTTPS, updates. I felt good about it.

Then I asked myself a simple question. If someone gets past all that, or does not even need to, what is standing between them and my website's admin page?

The honest answer was a password. That's it.

Here is what most people miss. A hardened server protects the building. But a web app is a door you leave open to the whole internet on purpose. That is the whole point of a website. An attacker does not need to break the wall if the front door has a cheap lock.

AI changed the maths

This is the part that worries me most.

An AI agent built with bad intent can do the work of a hundred hackers in a fraction of the time. It does not sleep. It does not get bored. It tries every door, every night.

This is not science fiction. In April, researchers disclosed a Linux flaw called Copy Fail that was found in about an hour with AI help. In its PHP warning this week, DigitalOcean wrote that AI-assisted research is finding vulnerabilities faster than before, and that PHP now ships security releases roughly every month.

The good guys use the same tools. But attackers only need one open door. In my view, nothing is more important for anyone running a website today than cybersecurity.

Server hardening vs app hardening

  • Server hardening: who can log in to the machine, which ports are open, whether updates are installed.
  • App hardening: who can log in to the website's admin, what each account is allowed to do, what happens after 50 wrong guesses, and what happens when something breaks.

Part 1 was the first list. This article is the second.

What I did to my apps: the ideas

I won't tell you exactly how my sites are built or configured. That would be a gift to the wrong reader. But every idea below works on any website, whatever it is built with.

1. Two-factor login on every admin page

Every admin login now asks for my password and then a six-digit code from the authenticator app on my phone. A stolen password on its own is now useless. I did this on both of my sites.

2. A password rule people will actually follow

I set a minimum length and nothing else. In my experience, overly long and complex rules make people write passwords down on sticky notes. That is a vulnerability in itself.

3. Give every robot its own key, and the smallest one possible

My AI assistant publishes articles on this site. It has its own account that can only touch the content it needs. It uses an access key and cannot log in to the admin at all. If that key ever leaks, the damage stops at the content. This idea is called least privilege, and it matters even more now that so many of us let AI agents work on our systems.

4. Ban the guessers at the app's door too

In Part 1 I banned addresses that kept guessing server passwords. I now do the same at the website's own login page. Too many wrong logins in a short time and that address is blocked for a while.

5. Logins that can be cancelled

When a password changes, every place that was logged in with the old one is kicked out at once. A stolen session does not survive a password change.

6. Look after the app's master password

Every web app has its own master password that it uses to sign logins and protect stored secrets. Lose it and you can lock yourself out. Leak it and someone else can pretend to be you. I keep a copy off the server, in a private place protected by two-step verification. And it never goes into the code.

7. Never change a live site without a way back

Every change follows the same routine: back up first, test that the backup actually restores, have the work reviewed, then switch over in a short maintenance window. One AI writes the code, a different AI reviews it, and nothing goes live until I say go. My last two changes each took the site down for under two minutes.

8. Write everything down

Every step goes into a log. When something goes wrong at 1 a.m., and it did, the log is how you find out what happened and how to undo it.

This week's warnings, and where to get the patches

In the space of three days my hosting company emailed me three security alerts. Here are the three that matter to most website owners.

PHP: 18 fixes, six of them critical

First, my opinion, and I'll keep it factual. PHP was a great choice 20 years ago. Today, in my view, there are better options for new projects, such as TypeScript on Node.js, Python or Go, with modern frameworks and safer defaults.

The facts behind that opinion:

  • PHP still runs 68.1% of websites whose server-side language is known (W3Techs, 20 November 2026). That makes it the biggest target on the web.
  • About a third of those PHP sites still run version 7 or older. PHP 8.1 and older no longer get security fixes at all.
  • October brought an emergency round of critical PHP fixes known as PHP2Shell. November brought another.

What happened: On 19 November 2026 PHP released 8.5.13, 8.4.28, 8.3.37 and 8.2.36. Together they fix up to 18 vulnerabilities, six rated critical. PHP says most critical issues need an unusual setup, but three hit common ones: PHP-FPM behind a web server that reuses FastCGI connections (CVE-2026-129289), PHP 8.5 running without the production php.ini (CVE-2026-129474), and session upload progress, which is on by default (CVE-2026-115560). No attacks in the wild had been reported at the time of the alert.

Where to get the patch:

  • Official downloads: php.net/downloads. Full list of fixes: PHP 8 ChangeLog.
  • If you installed PHP from your Linux distribution, update through its package manager and read its security advisory. The fix may be backported without the version number changing.
  • Restart PHP-FPM and your web server afterwards, then check the version with php -v.
  • PHP 8.2 stops getting security fixes on 31 December 2026. If you are on it, plan your move now.

Nginx: two critical holes in HTTP/2

What happened: On 18 November 2026 two critical Nginx vulnerabilities were disclosed, CVE-2026-123633 and CVE-2026-123007, both scored 9.2 out of 10. They let an attacker who is not logged in run code on the server. Your website does not need to have any bug of its own: the flaw is in Nginx itself, and it needs HTTP/2 to be switched on, which is very common.

Where to get the patch:

  • Upgrade to Nginx 1.30.7 (stable) or 1.31.9 (mainline) or newer from nginx.org/en/download.html. Details: nginx security advisories.
  • If Nginx came from your Linux distribution, check its security advisory. The version number alone may not show the fix.
  • Restart Nginx and confirm the version with nginx -v.
  • If you cannot update today, switch HTTP/2 off until you can.

Linux kernel: a critical flaw on Debian and Red Hat Enterprise Linux

What happened: CVE-2026-98432 is a flaw in how the Linux kernel handles incoming TCP connections, the most basic traffic any server receives. It affects kernels from version 4.4 onwards, which covers Debian, Red Hat Enterprise Linux (RHEL), Ubuntu and their relatives. It is scored 9.8 out of 10, and Red Hat rates it Critical. A remote attacker could crash the server or, in some setups, run code on it.

Where to get the patch:

  • Debian 13: security advisory DSA-6568-1. Debian 12: DLA-4841-1 and DLA-4850-1. Status per release: Debian security tracker.
  • RHEL 8, 9 and 10: fixed kernels are out, and Red Hat also released live patches on 19 and 20 November so many servers can be protected without an immediate restart. Details: Red Hat bulletin RHSB-2026-016.
  • A new kernel only protects you once the server is running it. Restart, then check with uname -r.
  • Switching off a feature called MPTCP is not enough on its own. Patch.

Your checklist for this week

  • Turn on two-factor login for every admin page you own.
  • Give every automation and AI agent its own account with the smallest access it needs.
  • Block repeated wrong logins at the app, not just the server.
  • Keep a safe copy of each app's master password off the server.
  • Patch PHP, Nginx and your Linux kernel. Restart. Check the version.
  • Subscribe to the security alerts from your hosting company and your Linux distribution.
  • Never change a live site without a backup and a way back.

The result

Both of my admin pages now need a password and a code from my phone. My AI assistant still has exactly what it needs to publish, and nothing more. Each change cost under two minutes of downtime.

Is it bulletproof? No. Nothing is. But the next attacker, human or AI, now has to work a lot harder. And these days, that is the whole game.

Sources