← All posts

Why This Site Has No Database

The occasion: PHP2Shell

On 21 October 2026 the PHP project released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. These updates remove two critical vulnerabilities that enable remote code execution without any authentication, issues known by the nickname PHP2Shell. According to the PHP project, all PHP installations serving web requests are affected, and it sees the highest risk with mod_php.

Since 26 October 2026 the US agency CISA has listed both flaws in its catalogue of known exploited vulnerabilities, though that does not say how many systems were actually compromised. The flaw sits in PHP itself and not in a specific application, which means the remedy is to update the PHP version. Whoever runs PHP depends on this layer, even with a well-maintained application.

What used to run here

This website previously operated on a setup involving WordPress, shared hosting, and a MySQL database. A maintenance routine was required to keep WordPress, the theme, plugins, PHP, MySQL, and the hosting panel constantly updated. The focus here is not on the product itself, but on the attack surface of such server-side, database-backed systems.

What static output changes

Today, the site is a purely static Astro build that was built locally and moved to the web space over SSH. The website itself no longer brings any PHP files, a database, plugins, a login, or an admin panel. I consider leaving these out the right step because OWASP advises switching off unused features and interfaces to reduce the attack surface.

What does not run on the server does not need patching there and cannot be attacked there. The responsibility for the platform beneath the website remains with the hosting provider. The risk has not gone, it just sits elsewhere.

What still happens in the browser

The website executes exactly one small own script to remember the language choice. No third-party scripts are loaded and all fonts are self-hosted.

A contact form is not integrated because communication occurs only via a mailto link. A visitor communicates exclusively with this one server.

Where the risk sits now

Static output moves the risk to the build machine, the npm dependencies, and the deployment. On 4 November 2026 npm audit reported 13 findings in this website’s dependencies, including one critical and ten high. The dependencies had not been updated since July, and after the update to Astro 7.4.5 the same check reports 0 findings.

On 27 August 2026 Astro published a critical advisory on AVIF image optimisation, fixed in version 7.2.8. It concerns projects in which an attacker can trigger the processing of an untrusted AVIF image. The Shai-Hulud self-propagating worm in autumn 2025 serves as a second example of attacks on the supply chain.

The dependencies run during the build on my machine and are not reachable from the internet. Maintenance does not go away, but it becomes easier to plan. A script compares live pages byte by byte with the build after each upload as the last safeguard.

The trade-off

A maintained CMS is the right choice when server-side logic is needed for dynamic content, user accounts, shops, or editorial teams. I do not use one here because this portfolio website has rare content changes where runtime brings no benefit. The deciding question is which parts of a system have to run online permanently.

Sources