Multisite CMS Installations and Shared Vulnerability Risk

Multisite CMS Installations and Shared Vulnerability Risk

Running ten, forty or two hundred sites from one multisite CMS installation saves real administrative time, but it also means one vulnerability rarely stays on a single site. This article covers how shared vulnerability risk works in multisite CMS setups like WordPress Multisite and Drupal multisite, where the isolation people expect breaks down, and how to audit and scan a network so one weak subsite doesn’t put every site on it at risk.

The typical reader manages a university network, an agency’s client portfolio or a franchise group’s local sites. The benefit of understanding this risk is practical: you can decide which sites belong on the shared installation and which should be moved off it.

What Subsites Actually Share

In WordPress Multisite, every subsite runs on the same core files, the same wp-config.php, the same database credentials and the same PHP process pool. Each site gets its own content tables (wp_2_posts, wp_3_options and so on), but wp_users and wp_usermeta are global. One account record exists across the whole network.

Plugins and themes live once on disk in wp-content. A plugin can be network-activated, activated on a single site, or just installed. Uploads are split into wp-content/uploads/sites/N/, but they sit on the same filesystem with the same web server user.

Drupal multisite works in a similar way. Separate folders under sites/, mapped through sites.php, share one codebase. Drupal does allow a separate database per site, which limits database exposure. The code is still shared, so a vulnerable contributed module affects every site that loads it.

The Isolation Myth in Multisite CMS Security

The most common misconception is that separate tables mean separate security boundaries. They don’t. Separate tables organise data. A security boundary would need separate credentials, processes and file permissions, and a standard multisite installation has none of those.

An SQL injection in a plugin used only on subsite 12 runs with the same database user that can read wp_users for the entire network. A file upload flaw on one site writes into a directory the web server can serve for every domain. Remote code execution on any subsite is remote code execution on all of them.

A second myth is closely related: “the plugin isn’t activated on that site, so it’s not exposed.” Many plugins ship PHP files that can be requested directly, such as AJAX handlers, upload helpers or legacy endpoints. If the file is on disk and doesn’t check for ABSPATH, an attacker can reach it through any subsite’s domain, whether or not the plugin is activated.

A Scenario Practitioners Will Recognise

Picture a higher-education network with 60 subsites. One department asked for a form builder two years ago. The network admin installed it, activated it on three sites and forgot about it. The plugin’s last release was 14 months ago.

A stored XSS flaw is disclosed in that plugin’s entry viewer. An attacker submits a payload through a form on the department’s subsite. A week later, a Super Admin opens that subsite’s dashboard to help with an unrelated request. The script runs in the Super Admin’s session and creates a new network-level administrator through the admin AJAX endpoints.

The attacker now controls 60 sites through a plugin that only three of them used. Patch notes and scan findings for the department site looked like a low-priority, single-site issue. That prioritisation was the real failure.

How to Audit a Multisite Network Step by Step

An experienced application security auditor starts with an inventory of the code on disk, not with the dashboards, and then works outward:

1. List every plugin and theme in wp-content (or modules/ in Drupal), including deactivated ones. Remove anything no site actively needs.
2. Map which sites use each component, and flag components with no update in 12 months or more.
3. Review who holds Super Admin. Most networks with over 20 sites have 2-3 too many.
4. Scan every subsite’s public URL, not just the primary domain. Domain-mapped sites often have different headers, TLS configurations and exposed paths.
5. Check that upload directories block PHP execution at the web server level, for example with a location block in Nginx or php_flag engine off in Apache.

Step 4 matters more than it seems. Website security scanning that only targets the main domain misses mapped domains, where SSL/TLS analysis frequently turns up expired certificates or missing HSTS. Daily vulnerability scanning across all subsite URLs also catches malware injected into a single site’s options table, which won’t show up on the main site.

Treat the plugin inventory as a network-wide risk register. The reasoning in plugin vulnerabilities as the biggest WordPress threat applies with a multiplier: one vulnerable component threatens every site on the network.

Common Mistakes on Shared Installations

Giving site admins the plugins menu. The network setting “Enable administration menus – Plugins” lets every site administrator activate any installed plugin. That turns 60 site admins into 60 people who can expand the attack surface. Keep it off unless a specific site has a documented need.

Treating Super Admin as a convenience role. Developers often get Super Admin because it’s faster than scoping their access. By default in WordPress Multisite, only Super Admins have unfiltered_html, the capability to post raw HTML and scripts. That makes their sessions the most valuable target on the network. The principles in least privilege access for website administrators apply most strictly here.

Prioritising by site traffic. Teams patch the flagship site first and let low-traffic subsites wait. On a shared installation the subsites share one compromise boundary, so the weakest site sets the risk for all of them. A flaw on a site with 40 visitors a month is a network-level finding.

When the Standard Advice Doesn’t Apply

Not every multisite is equally exposed. Drupal installations with per-site databases and per-site database users limit how far an SQL injection can reach, though code-level flaws still spread. Containerised setups that run one container per tenant from a shared image solve the process and filesystem problem completely, but they are no longer multisite in the traditional sense.

For regulated workloads, mixing sites often fails a compliance review. A payment site under PCI DSS or a health portal storing special-category data under GDPR shouldn’t share a database user with a marketing microsite. Small teams with fewer than 10 sites often find that separate installations, managed with WP-CLI and a deployment script, cost less effort than hardening a network properly.

FAQ

Is WordPress Multisite less secure than separate installations?
Not inherently. The core code is the same. The difference is the blast radius: a single exploitable flaw affects every site, so patching discipline and access control have to be stricter.

Can a site administrator on one subsite attack other subsites?
Not with default capabilities, since site admins lack unfiltered_html and plugin installation rights. Granting plugin menu access or custom capabilities, a pattern covered in WordPress user roles and privilege escalation risks, can change that quickly.

Do I need to scan every subsite separately?
Yes. Shared code doesn’t mean shared configuration. Mapped domains, per-site settings and injected content all vary, and a scan of the primary domain won’t see them.

Summary

A multisite CMS concentrates risk in shared code, shared credentials and shared admin sessions. Audit everything on disk rather than only what’s activated, keep the Super Admin group small, and scan every subsite URL on a schedule.

As a final practical tip, check the update date of each installed component, not just what the network dashboard shows. The plugin that will compromise your network is usually one that nobody remembers installing.