The client and the website
Medikliniek is a cosmetic medical clinic. Its website is where most patients meet it first: they read about treatments there and reach out to the clinic from it. For a clinic, a website that is compromised or offline is not a technical inconvenience but damage to the trust its patients place in it.
Korur knows the clinic's environment from an on-site security inspection and from the validation of its AI chatbot. Korur found that it ran on an outdated version of PHP, the language its server-side code is written in.
Why an outdated PHP version matters
PHP is not a plugin a website uses now and then. It is the runtime that handles every request the site receives, before any page is built. A vulnerability in PHP is therefore reachable through every page of the site, by anyone who can open it.
Every PHP release branch is supported for a fixed period, first with bug fixes and then with security fixes only. After that, vulnerabilities found in the branch stay open for good, while their descriptions, and often working exploits, are public. A site on such a version is not waiting for an attack that might be invented; it is exposed to attacks that already exist.
An outdated runtime rarely travels alone. The application and its extensions are often held back to stay compatible with it, so the old version also keeps older, vulnerable components in place.
Upgrading is the fix, and also a risk of its own. Each PHP release removes deprecated functions, tightens how types and errors are handled and changes behaviour that older code relied on. An upgrade done in one step on a live site can take the site down, or worse, leave it running with parts that fail quietly.
How we upgraded it
- Inventory. Korur established what runs on the site: the application, its extensions and themes, the libraries it loads and the PHP extensions it needs, together with what the hosting environment offers.
- Choice of target. The target was a PHP version under active security support, chosen so that the site's application and its extensions are supported on it as well.
- Compatibility assessment. The site's code and dependencies were checked against the changes between the old and the new version, so that incompatibilities were known before anything was switched.
- A tested copy. The upgrade was first made on a copy of the site, separate from the live one. The incompatibilities found were fixed there, by updating components to versions that support the new PHP or by correcting the code, and the pages and functions patients use were tested on that copy.
- A controlled switch. The live site was moved to the new version only when the copy worked, with the previous configuration ready to switch back to.
- Verification. After the switch, Korur confirmed from the outside that the live site runs the new version, went through the site's pages and functions again and checked the error logs for problems that a visitor would not see.
Decision 1
- Decision
- Upgrade to a supported version, not only to a newer one.
- Why
- The point of the upgrade is that security fixes reach the site again. A version that is newer but already near the end of its support would buy time and bring the same work back soon.
- Alternative rejected
- The smallest possible step up, which reduces the testing today and repeats the problem shortly after.
Decision 2
- Decision
- Find incompatibilities on a copy, not on the live site.
- Why
- A clinic's website has to be available to patients. Testing on a copy means every incompatibility is found and fixed where it costs nothing, and the live site only changes once the result is known to work.
- Alternative rejected
- Upgrading the live site directly and fixing what breaks, which turns every incompatibility into downtime that patients see.
Decision 3
- Decision
- Keep the way back ready during the switch.
- Why
- Testing reduces the chance that something goes wrong; a prepared rollback limits what it costs if it does. Together they make the switch a routine change rather than a gamble.
- Alternative rejected
- A one-way switch, which would leave the clinic with a broken site and no quick way to restore it.
Decision 4
- Decision
- Check the error logs, not only the pages.
- Why
- A newer PHP version often reports problems as warnings that never appear on screen. A page that looks right can still be failing in the background, for instance when it sends a form.
- Alternative rejected
- Declaring the upgrade done because the home page loads, which misses the failures that matter most.
The result
Medikliniek's website runs on a supported PHP version that receives security fixes again. The incompatibilities the upgrade exposed were fixed before the live site was switched, the site was verified after the switch, and the upgrade brought no downtime surprises.
What the upgrade involved in detail, the versions concerned and how the site is hosted stay between Korur and the clinic, as everything Korur sees in a healthcare environment does.
What we would do next
- Keep track of the end of security support for the PHP version the site runs, and plan the next upgrade well before it arrives, using the same staged approach.
- Keep the copy of the site, so that every future update of PHP, the application or its extensions is tested there first.
- Update the application and its extensions on a fixed schedule, since an up-to-date runtime protects only the code that runs on it.
- Make sure the server does not announce its software versions in its responses, so that an outside scan learns as little as possible about the site.
Stack
- PHP
Related cases
07Medikliniek: Healthcare Security Inspection in One Working Day: Full Scope, On Site, Patient Data in View
10Medikliniek: Trustworthy AI in Patient Care: Security and Compliance Validation of a Clinic's AI Chatbot02Wemessage: Adversary-View Threat Assessment: Mapping the Attack Surface of an Agency That Holds Its Clients' Digital Keys