Skip to content

Case study

Rescuing and migrating an infected Joomla 3 website to Joomla 6

Joomla

Public sector

Rescuing and migrating an infected Joomla 3 website to Joomla 6

AI-generated visualisation. It replaces a confidential view of a white-label project.

Summary

An infected and unsupported Joomla 3 website was cleaned, secured and moved in stages to Joomla 6. The project also covered modernising PHP and MySQL, recreating the look on a current template, replacing unsupported extensions and improving accessibility without losing an extensive content base.

01

Starting point

A public body’s website ran on Joomla 3, which no longer received security fixes, and on older versions of PHP and MySQL. The installation contained more than 150 hidden scripts and backdoors left after a break-in. The existing template and some extensions had no versions compatible with the current generation of the system.

02

Business problem

The site published a large amount of important information and had to keep the continuity of its content, menus, modules and links between articles. At the same time, continuing on an unsupported platform increased the risk of another incident and made it impossible to use the current server environment safely.

03

Risks

The project required removing persistent access mechanisms left after the break-in, keeping nearly 900 articles and nearly 100 menu items, and replacing three unsupported extensions used in more than 10,000 places in total. An additional risk was a separate, older information application that couldn’t be modernised as part of the main site update.

04

Scope of responsibility

We were responsible for backups, analysing and cleaning the installation, closing the attack vector, a staged Joomla migration, updating PHP and MySQL, extensions and the language pack, rebuilding the template, our own replacements for retired modules, accessibility fixes, the environment migration and testing the whole site.

See the full scope of Joomla support →


05

Solution

We removed the malicious scripts and backdoors, secured the mechanism used in the break-in and blocked code execution in directories meant for user files. Joomla was updated in turn through versions 4 and 5 to version 6, and the environment moved to PHP 8.3 and MySQL 8. We recreated the existing look on a supported template. We replaced three unsupported extensions with our own solutions that keep the presentation of the gallery, the information bar and the tiles. We also added accessibility improvements: a logical page heading, a skip-to-content link, descriptions of elements for screen readers, improved contrast and image descriptions.


06

Architecture and integrations

The target environment is based on Joomla 6, PHP 8.3, MySQL 8 and Apache. The website uses a current template and our own maintainable replacements for retired extensions. File and media mechanisms have restricted execute permissions, and administrators receive automatic update notifications. The separate older information application was secured as far as possible and flagged for separate replacement.


07

Results

All the menu items checked, nearly 900 published articles, modules and galleries remained available. The admin panel and the desktop and mobile views work correctly, and removing unused extensions didn’t change the site’s behaviour. A final review of the installation found no remaining malware, and the site now runs on a supported version of Joomla.

Technologies

Joomla 3, 4, 5 and 6, PHP 7.4 and 8.3, MySQL 5.7 and 8, Apache, custom Joomla extensions, a malware audit, file hardening, digital accessibility and responsive testing.

Next steps

We recommended changing all administrator passwords, post-incident monitoring of the site, installing updates as they come and planning the replacement of the separate unsupported information application. It’s also worth tidying up the unpublished menu item and planning the modernisation of the other older databases on the hosting account.

In a similar situation?

Let’s discuss a safe first step.