Back to diary list

Diary

If a co-tenant leaves the door unlocked, you cannot prevent it. Rethinking de-hosting based on the isolation limits of shared servers researched with ChatGPT Pro and the reality of backdoor countermeasures.

October 23, 202619 minShin Yamaguchi (Representative Partner, FLARES LLC)
Comparison table of isolation technologies for 11 major shared hosting providers. Evaluated on three axes: infringement from other tenants, cross-site infringement within the same contract, and OS infringement.

In yesterday's diary, I wrote about the unauthorized access damage caused by a critical PHP zero-day vulnerability and the decision to 'abandon the entire server' rather than trying to clean a contaminated server.

As I proceeded with that response, a fundamental question swirled in my mind.

"Even if I keep WordPress up to date and lock it down tightly with passkeys and WAF, if someone else living on the same server leaves the door wide open, isn't it impossible to prevent in the first place?"

Shared hosting has a structure like a 'giant share house' where hundreds or thousands of tenants live on a single physical server and OS environment. No matter how strong a lock you put on your room door, if a co-tenant leaves the entrance auto-lock or a common area window open, a thief can easily enter the building.

So, I decided to use ChatGPT Pro to investigate in more detail how far each company technically implements backdoor countermeasures and infringement isolation.


Three evaluation axes for backdoor countermeasures and isolation technology

In this investigation, I verified how far the system can stop cyber attackers from entering the server and installing backdoors (web shells or latent programs) based on the following three axes.

  1. Infringement from other tenants: If another tenant on the same server is hijacked due to a WordPress vulnerability, can they enter my area (files or DB)?
  2. Cross-site infringement within the same contract: If you operate multiple sites (multi-domain) under one contract, can an attacker move laterally from one breached site to your other sites?
  3. OS infringement (privilege escalation/root access theft): If an attacker exploits a Linux kernel vulnerability or local privilege escalation to seize root access to the OS, is the entire server contaminated?

Comparison of isolation technology for 11 major shared hosting providers

Based on each company's published technical specifications, official documentation, and support information, the following comparison table was organized by cross-referencing with ChatGPT Pro.

ServiceAdopted TechnologyInfringement from other tenantsCross-site infringement within same contractOS infringement
XserversuEXEC△?×
SakuraUser permission separation△?×
LolipopAccount-based separation○?×
ConoHa WINGCloudLinux/suEXEC△?×
mixhostCageFS/LVE◎△×
ColorfulBoxCloudLinux△?×
hetemlAccount-based separation○?×
Onamae.com RSDetails undisclosed???
CPIDomain-specific independent environment○○?
KAGOYAKVM/Physical Dedicated◎△△
XServer BusinessDedicated Environment/Privilege Separation◎○△

Legend:

  • ◎ : Strong isolation technology confirmed (containerized virtual file systems, etc.)
  • ○ : Certain isolation measures confirmed (user permissions or account separation)
  • △ : Only partial measures confirmed (cross-boundary risks remain depending on configuration)
  • × : Cannot be prevented by the listed technology alone (shared on the same OS)
  • ? : Cannot be determined from public information (detailed specifications are a black box)

※ OS compromise assumes scenarios such as gaining administrator privileges on a shared OS. The scope of impact differs for VM/Physical Dedicated environments. This evaluation is based on each company's public specifications and summarizes the theoretical limits of the architecture; it is not based on actual penetration testing.

Loading diagram...

What is "not enough"? Structural flaws of shared hosting

The reality revealed by this investigation is more severe than we imagined.

1. Limitations of suEXEC and standard Linux privilege separation

suEXEC and permission management adopted by many hosting services are merely mechanisms for the Web server (Apache, etc.) to execute scripts under different user privileges, preventing direct file read/write. However, as long as they run on the same OS, it is extremely difficult to prevent internal reconnaissance or symbolic link attacks using a compromised user as a foothold, such as process lists, sockets, and/tmpdirectory sharing.

2. Strengths of CloudLinux and CageFS, and the "OS Wall" that still cannot be crossed

CageFS, adopted by services like mixhost, provides each user with a unique virtualized file system tree, making other users' files and processes completely invisible. This acts as a very strong shield against "direct cross-boundary access from other contractors (◎)."

However, if multiple sites are operated under the same contract, if one site is compromised, it is easy to move laterally (△) to other sites within the same CageFS. And the most terrifying thing isprivilege escalation due to vulnerabilities in the Linux kernel itself (×). As long as the OS kernel is shared, if an intruder gains administrator (root) privileges, container-like isolation is neutralized in an instant, putting all data on the server at risk of viewing and tampering.

3. The black box of "undisclosed details"

For some major services, the isolation architecture from other contractors is "undisclosed." Users have no choice but to bet on the trust that "it must be safe because it's a major company," but in security, "unclear mechanisms" are a major risk factor in themselves.


If you want to be security-conscious, you should honestly stop using shared hosting

Of course, there are many parts that cannot be understood from public information alone. Each company likely combines its own WAF, IPS, malware scanners, and access blocking mechanisms in multiple layers for defense.

However, no matter how much multi-layered defense is touted,the fundamental architecture of "sharing the same OS and the same PHP runtime environment with unknown others"does not change, so risks cannot be fundamentally eliminated.

"Even if I lock my door properly, isn't it useless if my roommate leaves theirs open?"

The more I researched this technically, the more sadly correct this intuition proved to be.

Continuously adding security measures while feeling anxious on a shared server, where you never know when someone else might get infected or when a zero-day attack might break through, is like pouring water into a bucket with a hole in the bottom.

That is why, if you are serious about security to protect your company's reputation and customer data,"you should honestly stop using shared hosting". This is my unwavering conclusion from this investigation.


Abandon shared OS, move to Edge and Zero Trust

As per the recovery proposal mentioned in yesterday's diary, the path we should take is not to force hardening within shared hosting.

"Switching to a configuration that does not have shared servers or dynamic PHP servers in the first place".

  1. Do not share servers (abolition of dynamic hosting):

Migrate to edge infrastructure like Cloudflare Pages / Workers and base it on static delivery. Since there is no PHP runtime, there is no room to install web shells or backdoors.

  1. Physical separation of CMS and public site:

Daily article updates are performed via the API of the headless CMS 'EmDash', and the website's delivery infrastructure and management database are completely separated at the network level.

  1. Abolition of passwords and adoption of passkey authentication:

Access to the management console requires passkeys (WebAuthn) or OAuth 2.0, fundamentally neutralizing phishing and brute-force attacks.

End the days of worrying about others' security measures and establish robust boundaries with our own hands.

As a first step toward not leaving security to chance, we will continue to strongly support the decision to move away from shared hosting.