<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[AdminsForum - Server security and hardening]]></title>
		<link>https://adminsforum.com/</link>
		<description><![CDATA[AdminsForum - https://adminsforum.com]]></description>
		<pubDate>Sun, 29 Nov 2026 09:02:02 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[PHP2Shell (CVE-2026-109618 & CVE-2026-109619): What It Is and How to Fix It]]></title>
			<link>https://adminsforum.com/Thread-guide-php2shell-cve-2026-109618-cve-2026-109619-what-it-is-and-how-to-fix-it</link>
			<pubDate>Thu, 22 Oct 2026 23:40:46 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=1">JAY</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-php2shell-cve-2026-109618-cve-2026-109619-what-it-is-and-how-to-fix-it</guid>
			<description><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">PHP2Shell (CVE-2026-109618 and CVE-2026-109619): what it is and how to fix it</span></span><br />
<br />
On 21 October 2026 the PHP project released emergency updates for two critical vulnerabilities, nicknamed <span style="font-weight: bold;" class="mycode_b">PHP2Shell</span>. Together they can let an attacker run code on a server running PHP, without logging in. Attacks were seen before the patches came out, so if you run any PHP website, <span style="font-weight: bold;" class="mycode_b">update today</span>.<br />
<br />
This article explains the problem in plain language, which versions are fixed, and how to check and patch your server. We also have step-by-step guides for each hosting control panel (links at the bottom).<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">The short version</span></span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">What:</span> two memory bugs in PHP itself (not in WordPress or your app) that can lead to remote code execution and memory leaks.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Who:</span> almost every PHP version that serves websites: PHP-FPM, Apache mod_php, php-cgi, LiteSpeed (lsphp) and FrankenPHP.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Severity:</span> CVSS v4.0 score 9.2 (critical) for both.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Being exploited?</span> Yes. Amazon saw attempts from 17 October, and Cloudflare and others report ongoing attacks.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Fix:</span> update PHP to <span style="font-weight: bold;" class="mycode_b">8.5.12</span>, <span style="font-weight: bold;" class="mycode_b">8.4.27</span>, <span style="font-weight: bold;" class="mycode_b">8.3.36</span> or <span style="font-weight: bold;" class="mycode_b">8.2.35</span> (or your vendor's patched package), then restart PHP.<br />
</li>
</ul>
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">What are the two vulnerabilities?</span></span><br />
<span style="font-weight: bold;" class="mycode_b">CVE-2026-109618 (out-of-memory corruption).</span> If PHP runs out of memory at the wrong moment while setting up a request, it can leave internal data half-built. The clean-up code then treats that broken data as valid, which an attacker can abuse.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">CVE-2026-109619 (stale global state).</span> PHP can keep a pointer to request data after that memory is freed. A later request handled by the same PHP worker can then use the freed memory (a "use-after-free"). Researchers showed this can lead to code execution, and also to leaking the worker's memory, which may contain passwords, session tokens and API keys.<br />
<br />
Both bugs are in the PHP engine, so it doesn't matter which app you run. The PHP security team rated both <span style="font-weight: bold;" class="mycode_b">9.2 (critical)</span>. Apache with mod_php needs the most urgent attention, because an attack there can trigger before any of your application code even runs.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Fixed versions</span></span><ul class="mycode_list"><li>PHP 8.5: <span style="font-weight: bold;" class="mycode_b">8.5.12</span><br />
</li>
<li>PHP 8.4: <span style="font-weight: bold;" class="mycode_b">8.4.27</span><br />
</li>
<li>PHP 8.3: <span style="font-weight: bold;" class="mycode_b">8.3.36</span><br />
</li>
<li>PHP 8.2: <span style="font-weight: bold;" class="mycode_b">8.2.35</span><br />
</li>
<li>PHP 7.4, 8.0, 8.1: no official release. Get a patched package from your Linux distribution or vendor, or upgrade to a supported PHP version.<br />
</li>
<li>PHP 7.3 and older: end of life, no fix. Upgrade.<br />
</li>
</ul>
<span style="font-weight: bold;" class="mycode_b">Important:</span> Ubuntu, Debian and Red Hat often patch PHP <span style="font-style: italic;" class="mycode_i">without changing the version number</span> (for example Ubuntu 22.04's <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>8.1.2-1ubuntu2.28</code></div></div>). On those systems, check the full package version or changelog, not just <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 1: Find every PHP on your server</span></span><br />
Many servers have more than one PHP. A control panel may have one PHP per version, plus the system PHP, plus a separate PHP for LiteSpeed. <span style="font-weight: bold;" class="mycode_b">Each one needs patching.</span> It's easy to patch the panel's PHP and miss a second one, such as LiteSpeed's own PHP (lsphp).<br />
<br />
Useful checks:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v
ls /www/server/php/ 2&gt;/dev/null        # aaPanel
ls -d /usr/local/lsws/lsphp* 2&gt;/dev/null  # LiteSpeed / OpenLiteSpeed / CyberPanel
ls /etc/php/ 2&gt;/dev/null                 # Debian/Ubuntu packages
ls -d /opt/cpanel/ea-php* /opt/plesk/php/* 2&gt;/dev/null
ps aux | grep -E "php-fpm|lsphp|httpd" | grep -v grep | head</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 2: Update PHP</span></span><br />
Use your control panel or package manager. The exact steps differ per panel, so follow the guide for yours (links below). In general:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># Debian / Ubuntu
apt update &amp;&amp; apt list --upgradable 2&gt;/dev/null | grep -i php
apt install --only-upgrade 'php8.3*'

# AlmaLinux / Rocky / RHEL
dnf upgrade 'php*'</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 3: Restart PHP</span></span><br />
The update only protects you once the running PHP processes restart. <span style="font-weight: bold;" class="mycode_b">This step is often forgotten.</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>systemctl restart php8.3-fpm     # Debian/Ubuntu, one per version
systemctl restart php-fpm        # RHEL family
systemctl restart apache2        # Apache with mod_php
pkill lsphp                      # LiteSpeed starts new workers automatically</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 4: Check that it worked</span></span><br />
Check the version the <span style="font-style: italic;" class="mycode_i">web server</span> uses, not just the command line. Create a file in your website folder:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>&lt;?php echo PHP_VERSION;</code></div></div>Open it in your browser, check the number, then <span style="font-weight: bold;" class="mycode_b">delete the file</span> straight away.<br />
<br />
This command lists processes still running old, replaced PHP files. Empty output means everything restarted:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>grep -lE ' /(usr|lib|opt|www).*&#92;(deleted&#92;)&#36;' /proc/[0-9]*/maps 2&gt;/dev/null</code></div></div>On Debian/Ubuntu, <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>needrestart -b -r l</code></div></div> does the same check.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Can't update yet? Temporary protection</span></span><br />
These settings reduce the risk until you can update. They are <span style="font-weight: bold;" class="mycode_b">not</span> a full fix. Set them in the server's <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php.ini</code></div></div> or PHP-FPM pool (<span style="font-weight: bold;" class="mycode_b">not</span> with <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ini_set()</code></div></div> or <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>.user.ini</code></div></div>, which come too late), then restart PHP:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>; blocks the CVE-2026-109619 path
session.upload_progress.enabled = 0
; PHP 8.5 only
fatal_error_backtraces = 0</code></div></div>For CVE-2026-109618 the PHP team suggests <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>memory_limit = -1</code></div></div> set by the administrator. Be careful: this removes PHP's memory cap, so one heavy request can use a lot of RAM. Combine it with a container or cgroup memory limit, and update as soon as you can. If your site runs behind Cloudflare, its WAF has rules for known attack patterns, including on the free plan, but only for traffic that goes through Cloudflare.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Were you already attacked?</span></span><br />
Attacks started on 17 October, before the fix existed. After patching, spend ten minutes checking:<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">New or changed PHP files</span> in your websites since 17 October:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>find /var/www /www/wwwroot /home -name "*.php" -newermt 2026-10-17 -type f 2&gt;/dev/null | head -50</code></div></div>Look for files you didn't create, especially in upload folders.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Cron jobs</span> you don't recognise: <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>crontab -l</code></div></div> for root and each site user.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Unknown processes</span> or high CPU (crypto miners are common): <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>top</code></div></div>, <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ps aux --sort=-%cpu | head</code></div></div>.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Outgoing connections</span> to strange IPs: <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ss -tnp</code></div></div>.<br />
</li>
</ul>
Because the bug can leak memory, consider <span style="font-weight: bold;" class="mycode_b">changing secrets</span> stored in PHP apps (database passwords, API keys, app keys) if anything looks wrong.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step-by-step guides for each control panel</span></span><ul class="mycode_list"><li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-in-aapanel" target="_blank" rel="noopener" class="mycode_url">aaPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cloudpanel" target="_blank" rel="noopener" class="mycode_url">CloudPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cyberpanel" target="_blank" rel="noopener" class="mycode_url">CyberPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-fastpanel" target="_blank" rel="noopener" class="mycode_url">FASTPANEL: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-hestiacp" target="_blank" rel="noopener" class="mycode_url">HestiaCP: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cpanel-whm" target="_blank" rel="noopener" class="mycode_url">cPanel &amp; WHM: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-plesk" target="_blank" rel="noopener" class="mycode_url">Plesk: fix PHP2Shell step by step</a><br />
</li>
</ul>
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Frequently asked questions</span></span><br />
<span style="font-weight: bold;" class="mycode_b">Is WordPress affected?</span><br />
Yes. Any app running on a vulnerable PHP is exposed, because the bug is in PHP itself. Updating WordPress does not fix it; updating PHP does.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Does Nginx with PHP-FPM protect me?</span><br />
No. PHP-FPM is affected too. mod_php is the highest risk, but every web-facing PHP should be updated.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">I updated, but php -v still shows the old number.</span><br />
Your distribution may back-port the fix without changing the version (check the package changelog), or <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div> is showing a different PHP from the one your websites use. Check through the browser as in Step 4.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Should I trust exploit code from GitHub?</span><br />
No. Unverified "proof of concept" code for these bugs is circulating and may contain malware. Don't run it on your servers.<br />
<br />
Questions about your setup? Ask in <span style="font-weight: bold;" class="mycode_b">Server security and hardening</span> or in the security support forum for your panel. Include your panel, OS and the output of <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div>.<br />
<br />
<span style="font-size: small;" class="mycode_size">Sources (checked 22 October 2026): <a href="https://www.tenable.com/blog/php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote" target="_blank" rel="noopener" class="mycode_url">Tenable FAQ</a> · <a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/10/20/php-announces-critical-security-release-for-two-vulnerabilities" target="_blank" rel="noopener" class="mycode_url">Qualys: find, mitigate and patch PHP2Shell</a> · <a href="https://www.helpnetsecurity.com/2026/10/21/php2shell-php-vulnerabilities-patched-cve-2026-109618-cve-2026-109619/" target="_blank" rel="noopener" class="mycode_url">Help Net Security</a> · <a href="https://www.bleepingcomputer.com/news/security/php-ships-emergency-patches-for-critical-php2shell-flaws/" target="_blank" rel="noopener" class="mycode_url">BleepingComputer</a></span>]]></description>
			<content:encoded><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">PHP2Shell (CVE-2026-109618 and CVE-2026-109619): what it is and how to fix it</span></span><br />
<br />
On 21 October 2026 the PHP project released emergency updates for two critical vulnerabilities, nicknamed <span style="font-weight: bold;" class="mycode_b">PHP2Shell</span>. Together they can let an attacker run code on a server running PHP, without logging in. Attacks were seen before the patches came out, so if you run any PHP website, <span style="font-weight: bold;" class="mycode_b">update today</span>.<br />
<br />
This article explains the problem in plain language, which versions are fixed, and how to check and patch your server. We also have step-by-step guides for each hosting control panel (links at the bottom).<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">The short version</span></span><ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">What:</span> two memory bugs in PHP itself (not in WordPress or your app) that can lead to remote code execution and memory leaks.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Who:</span> almost every PHP version that serves websites: PHP-FPM, Apache mod_php, php-cgi, LiteSpeed (lsphp) and FrankenPHP.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Severity:</span> CVSS v4.0 score 9.2 (critical) for both.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Being exploited?</span> Yes. Amazon saw attempts from 17 October, and Cloudflare and others report ongoing attacks.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Fix:</span> update PHP to <span style="font-weight: bold;" class="mycode_b">8.5.12</span>, <span style="font-weight: bold;" class="mycode_b">8.4.27</span>, <span style="font-weight: bold;" class="mycode_b">8.3.36</span> or <span style="font-weight: bold;" class="mycode_b">8.2.35</span> (or your vendor's patched package), then restart PHP.<br />
</li>
</ul>
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">What are the two vulnerabilities?</span></span><br />
<span style="font-weight: bold;" class="mycode_b">CVE-2026-109618 (out-of-memory corruption).</span> If PHP runs out of memory at the wrong moment while setting up a request, it can leave internal data half-built. The clean-up code then treats that broken data as valid, which an attacker can abuse.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">CVE-2026-109619 (stale global state).</span> PHP can keep a pointer to request data after that memory is freed. A later request handled by the same PHP worker can then use the freed memory (a "use-after-free"). Researchers showed this can lead to code execution, and also to leaking the worker's memory, which may contain passwords, session tokens and API keys.<br />
<br />
Both bugs are in the PHP engine, so it doesn't matter which app you run. The PHP security team rated both <span style="font-weight: bold;" class="mycode_b">9.2 (critical)</span>. Apache with mod_php needs the most urgent attention, because an attack there can trigger before any of your application code even runs.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Fixed versions</span></span><ul class="mycode_list"><li>PHP 8.5: <span style="font-weight: bold;" class="mycode_b">8.5.12</span><br />
</li>
<li>PHP 8.4: <span style="font-weight: bold;" class="mycode_b">8.4.27</span><br />
</li>
<li>PHP 8.3: <span style="font-weight: bold;" class="mycode_b">8.3.36</span><br />
</li>
<li>PHP 8.2: <span style="font-weight: bold;" class="mycode_b">8.2.35</span><br />
</li>
<li>PHP 7.4, 8.0, 8.1: no official release. Get a patched package from your Linux distribution or vendor, or upgrade to a supported PHP version.<br />
</li>
<li>PHP 7.3 and older: end of life, no fix. Upgrade.<br />
</li>
</ul>
<span style="font-weight: bold;" class="mycode_b">Important:</span> Ubuntu, Debian and Red Hat often patch PHP <span style="font-style: italic;" class="mycode_i">without changing the version number</span> (for example Ubuntu 22.04's <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>8.1.2-1ubuntu2.28</code></div></div>). On those systems, check the full package version or changelog, not just <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 1: Find every PHP on your server</span></span><br />
Many servers have more than one PHP. A control panel may have one PHP per version, plus the system PHP, plus a separate PHP for LiteSpeed. <span style="font-weight: bold;" class="mycode_b">Each one needs patching.</span> It's easy to patch the panel's PHP and miss a second one, such as LiteSpeed's own PHP (lsphp).<br />
<br />
Useful checks:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v
ls /www/server/php/ 2&gt;/dev/null        # aaPanel
ls -d /usr/local/lsws/lsphp* 2&gt;/dev/null  # LiteSpeed / OpenLiteSpeed / CyberPanel
ls /etc/php/ 2&gt;/dev/null                 # Debian/Ubuntu packages
ls -d /opt/cpanel/ea-php* /opt/plesk/php/* 2&gt;/dev/null
ps aux | grep -E "php-fpm|lsphp|httpd" | grep -v grep | head</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 2: Update PHP</span></span><br />
Use your control panel or package manager. The exact steps differ per panel, so follow the guide for yours (links below). In general:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code># Debian / Ubuntu
apt update &amp;&amp; apt list --upgradable 2&gt;/dev/null | grep -i php
apt install --only-upgrade 'php8.3*'

# AlmaLinux / Rocky / RHEL
dnf upgrade 'php*'</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 3: Restart PHP</span></span><br />
The update only protects you once the running PHP processes restart. <span style="font-weight: bold;" class="mycode_b">This step is often forgotten.</span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>systemctl restart php8.3-fpm     # Debian/Ubuntu, one per version
systemctl restart php-fpm        # RHEL family
systemctl restart apache2        # Apache with mod_php
pkill lsphp                      # LiteSpeed starts new workers automatically</code></div></div><br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step 4: Check that it worked</span></span><br />
Check the version the <span style="font-style: italic;" class="mycode_i">web server</span> uses, not just the command line. Create a file in your website folder:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>&lt;?php echo PHP_VERSION;</code></div></div>Open it in your browser, check the number, then <span style="font-weight: bold;" class="mycode_b">delete the file</span> straight away.<br />
<br />
This command lists processes still running old, replaced PHP files. Empty output means everything restarted:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>grep -lE ' /(usr|lib|opt|www).*&#92;(deleted&#92;)&#36;' /proc/[0-9]*/maps 2&gt;/dev/null</code></div></div>On Debian/Ubuntu, <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>needrestart -b -r l</code></div></div> does the same check.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Can't update yet? Temporary protection</span></span><br />
These settings reduce the risk until you can update. They are <span style="font-weight: bold;" class="mycode_b">not</span> a full fix. Set them in the server's <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php.ini</code></div></div> or PHP-FPM pool (<span style="font-weight: bold;" class="mycode_b">not</span> with <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ini_set()</code></div></div> or <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>.user.ini</code></div></div>, which come too late), then restart PHP:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>; blocks the CVE-2026-109619 path
session.upload_progress.enabled = 0
; PHP 8.5 only
fatal_error_backtraces = 0</code></div></div>For CVE-2026-109618 the PHP team suggests <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>memory_limit = -1</code></div></div> set by the administrator. Be careful: this removes PHP's memory cap, so one heavy request can use a lot of RAM. Combine it with a container or cgroup memory limit, and update as soon as you can. If your site runs behind Cloudflare, its WAF has rules for known attack patterns, including on the free plan, but only for traffic that goes through Cloudflare.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Were you already attacked?</span></span><br />
Attacks started on 17 October, before the fix existed. After patching, spend ten minutes checking:<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">New or changed PHP files</span> in your websites since 17 October:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>find /var/www /www/wwwroot /home -name "*.php" -newermt 2026-10-17 -type f 2&gt;/dev/null | head -50</code></div></div>Look for files you didn't create, especially in upload folders.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Cron jobs</span> you don't recognise: <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>crontab -l</code></div></div> for root and each site user.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Unknown processes</span> or high CPU (crypto miners are common): <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>top</code></div></div>, <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ps aux --sort=-%cpu | head</code></div></div>.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Outgoing connections</span> to strange IPs: <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>ss -tnp</code></div></div>.<br />
</li>
</ul>
Because the bug can leak memory, consider <span style="font-weight: bold;" class="mycode_b">changing secrets</span> stored in PHP apps (database passwords, API keys, app keys) if anything looks wrong.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Step-by-step guides for each control panel</span></span><ul class="mycode_list"><li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-in-aapanel" target="_blank" rel="noopener" class="mycode_url">aaPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cloudpanel" target="_blank" rel="noopener" class="mycode_url">CloudPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cyberpanel" target="_blank" rel="noopener" class="mycode_url">CyberPanel: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-fastpanel" target="_blank" rel="noopener" class="mycode_url">FASTPANEL: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-hestiacp" target="_blank" rel="noopener" class="mycode_url">HestiaCP: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-cpanel-whm" target="_blank" rel="noopener" class="mycode_url">cPanel &amp; WHM: fix PHP2Shell step by step</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-fix-php2shell-cve-2026-109618-109619-on-plesk" target="_blank" rel="noopener" class="mycode_url">Plesk: fix PHP2Shell step by step</a><br />
</li>
</ul>
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Frequently asked questions</span></span><br />
<span style="font-weight: bold;" class="mycode_b">Is WordPress affected?</span><br />
Yes. Any app running on a vulnerable PHP is exposed, because the bug is in PHP itself. Updating WordPress does not fix it; updating PHP does.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Does Nginx with PHP-FPM protect me?</span><br />
No. PHP-FPM is affected too. mod_php is the highest risk, but every web-facing PHP should be updated.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">I updated, but php -v still shows the old number.</span><br />
Your distribution may back-port the fix without changing the version (check the package changelog), or <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div> is showing a different PHP from the one your websites use. Check through the browser as in Step 4.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Should I trust exploit code from GitHub?</span><br />
No. Unverified "proof of concept" code for these bugs is circulating and may contain malware. Don't run it on your servers.<br />
<br />
Questions about your setup? Ask in <span style="font-weight: bold;" class="mycode_b">Server security and hardening</span> or in the security support forum for your panel. Include your panel, OS and the output of <div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php -v</code></div></div>.<br />
<br />
<span style="font-size: small;" class="mycode_size">Sources (checked 22 October 2026): <a href="https://www.tenable.com/blog/php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote" target="_blank" rel="noopener" class="mycode_url">Tenable FAQ</a> · <a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/10/20/php-announces-critical-security-release-for-two-vulnerabilities" target="_blank" rel="noopener" class="mycode_url">Qualys: find, mitigate and patch PHP2Shell</a> · <a href="https://www.helpnetsecurity.com/2026/10/21/php2shell-php-vulnerabilities-patched-cve-2026-109618-cve-2026-109619/" target="_blank" rel="noopener" class="mycode_url">Help Net Security</a> · <a href="https://www.bleepingcomputer.com/news/security/php-ships-emergency-patches-for-critical-php2shell-flaws/" target="_blank" rel="noopener" class="mycode_url">BleepingComputer</a></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Linux VPS Security Hardening Checklist for 2026]]></title>
			<link>https://adminsforum.com/Thread-guide-linux-vps-security-hardening-checklist-for-2026</link>
			<pubDate>Thu, 08 Oct 2026 01:53:43 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=2">DEV</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-linux-vps-security-hardening-checklist-for-2026</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b">Hardening a VPS is an ongoing process: reduce exposed services, protect administrator access, keep software supported and make recovery verifiable. This checklist gives you evidence to collect, not just settings to copy.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Scope:</span> Examples target systemd-based Ubuntu/Debian. Adapt package, service and firewall commands for other distributions. On a hosting-panel server, follow vendor-supported procedures so panel updates do not undo your changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Safety first:</span> Test the provider console, save configuration backups and keep your current SSH session open. Make one access-control change at a time and confirm a second login works. Never use your only production server to experiment with an unreviewed hardening script.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">1. Protect the account that owns the VPS</span></span><br />
Enable MFA on the provider, registrar, DNS and backup accounts. Store recovery codes securely and use unique passwords. Review API tokens, team access and billing/contact recovery paths. A hardened guest cannot prevent an attacker with provider-console access from replacing its disks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Remove obsolete users/tokens, test your recovery procedure and confirm security notifications go to a monitored address.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">2. Inventory users, services and public listeners</span></span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>cat /etc/os-release
getent passwd
getent group sudo
sudo ss -lntup
systemctl --failed
systemctl list-unit-files --state=enabled</code></div></div>Review human users, service accounts and privileged groups. Do not delete unfamiliar system accounts without understanding their purpose. Bind database/cache services to loopback or the required private interface. Remove obsolete software after checking dependencies.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> From an external machine you control, test only your server's intended ports. Check IPv4 and IPv6; a local listener list alone does not prove what the Internet can reach.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">3. Use named admins and tested SSH keys</span></span><br />
Each administrator should have their own account/key so access can be revoked individually. Protect private keys with a passphrase and keep them off the server. Confirm key login and sudo in a new session before disabling any existing method.<br />
<br />
For a standalone server where keyboard-interactive MFA is not used, the intended SSH policy may include:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no</code></div></div>Back up the configuration and edit the effective file/snippet with sudoedit. Inspect Include order, provider snippets and Match blocks. Validate and review before reloading:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo /usr/sbin/sshd -t
sudo /usr/sbin/sshd -T | grep -E '^(permitrootlogin|pubkeyauthentication|passwordauthentication|kbdinteractiveauthentication) '</code></div></div>If syntax is valid, use the appropriate reload mechanism; commonly sudo systemctl reload ssh on Ubuntu/Debian. Then test a fresh login. For conditional Match blocks, inspect the actual user/client context with sshd -T -C. Do not disable keyboard-interactive if your intended MFA depends on it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Your named admin can log in and use sudo; root/password access behaves as intended. Keep the console available until all checks pass.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">4. Restrict management access at both firewall layers</span></span><br />
Use the provider firewall and a supported guest firewall. Permit your actual SSH port before enabling restrictions. Prefer a VPN or trusted source addresses for SSH and panel interfaces; account for a changing home IP and recovery access. Expose web ports only for services that need them. Do not expose database, Redis or Docker management endpoints publicly.<br />
<br />
For an existing UFW deployment, inspect without changing policy:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo ufw status verbose
sudo ufw status numbered</code></div></div>Do not layer UFW over a panel-managed firewall without checking compatibility. Review IPv6 and Docker forwarding/published-port behavior separately.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Fresh management connections succeed from approved paths and unintended public ports are unreachable. A hidden panel URL or custom SSH port is not an authentication control.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">5. Patch every software layer</span></span><br />
Track the OS, kernel, panel, plugins, PHP/runtime versions, web apps and dependencies. Remove end-of-life versions or plan a supported migration. Review updates and backups before applying them:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo apt update
apt list --upgradable</code></div></div>Use automatic security updates where supported, but confirm allowed repositories, logs, failure alerts and reboot policy. Third-party software may require a separate update process. Schedule and verify reboots when needed; installing a kernel update does not mean the running kernel changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Update jobs finish successfully, notifications arrive and the application still works after maintenance.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">6. Protect hosting panels and applications</span></span><br />
Use a valid TLS certificate, unique admin credentials and supported MFA. Restrict panel access and disable unused plugins/API access. Give applications separate database users with only needed privileges. Keep secrets outside public web roots and avoid storing them in repositories or world-readable files.<br />
<br />
Do not solve ownership errors with recursive chmod 777. Do not disable SELinux/AppArmor to make an application start; examine the denial and adjust the intended policy. Validate application-specific permissions and test uploads, scheduled jobs and updates afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> The panel is reachable only through intended paths; TLS validates without bypassing warnings; application accounts cannot access unrelated databases/files.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">7. Treat brute-force protection as an extra layer</span></span><br />
Fail2ban or an equivalent tool can help with services that still need public login endpoints. Verify the selected filter reads the actual log/journal and the ban action uses your active firewall. Account for reverse proxies so legitimate visitors are not all attributed to the proxy's IP. Use supported real-client-IP configuration and trusted proxy ranges.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Inspect service status, configuration checks and jail counters using the installed tool's documentation. Keep a console and recovery path for accidental bans. Rate limiting does not replace keys, MFA or timely patching.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">8. Make detection useful</span></span><br />
Monitor unexpected successful logins, privileged changes, new listeners, failed update/backup jobs and resource exhaustion. Retain logs long enough to investigate and consider a protected off-server copy. Basic inspection:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo journalctl -u ssh --since "24 hours ago" --no-pager
sudo journalctl -p warning -b --no-pager
last -n 20
systemctl --failed</code></div></div>Service/log names vary; also inspect application and panel audit logs. Failed SSH attempts are common on public hosts. An unfamiliar successful login or a changed authorized_keys file deserves investigation.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Trigger a harmless test alert and confirm someone receives it. Redact IPs, usernames and personal data before sharing logs publicly.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">9. Keep independent, tested backups</span></span><br />
Use encrypted off-site backups, retention and credentials with limited scope. Include application-consistent database backups, files, configuration and rebuild instructions. Protect at least one copy from deletion by a compromised production server where feasible. A snapshot under the same provider account is useful, but shares that account's failure risk.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Restore into an isolated environment and test the application. Record how much data/time recovery would lose. Monitor backup age and restore failures.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">10. Prepare for compromise before it happens</span></span><br />
Keep a private inventory, contacts and rebuild plan. If compromise is suspected, use the provider console/trusted workstation, preserve relevant evidence and isolate the affected system as appropriate. Do not assume deleting one suspicious file makes the host trustworthy. Plan to rebuild from a known-good image and rotate exposed credentials from a clean device after containment. Check adjacent provider, DNS, backup and application accounts too.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Monthly review:</span> Are all administrators still authorized? Are OS/apps supported? Are only necessary ports exposed? Do alerts arrive? Has a restore been tested? Repeat after major deployments or staff changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Further reading</span><ul class="mycode_list"><li><a href="https://ubuntu.com/server/docs/how-to/security/openssh-server/" target="_blank" rel="noopener" class="mycode_url">Ubuntu OpenSSH guidance</a><br />
</li>
<li><a href="https://ubuntu.com/server/docs/firewalls/" target="_blank" rel="noopener" class="mycode_url">Ubuntu firewall documentation</a><br />
</li>
<li><a href="https://ubuntu.com/server/docs/how-to/software/automatic-updates/" target="_blank" rel="noopener" class="mycode_url">Ubuntu automatic updates</a><br />
</li>
<li><a href="https://man.openbsd.org/sshd_config" target="_blank" rel="noopener" class="mycode_url">OpenSSH configuration reference</a><br />
</li>
<li><a href="https://adminsforum.com/showthread.php?tid=22" target="_blank" rel="noopener" class="mycode_url">15 Things to Do After Buying a New VPS</a><br />
</li>
</ul>
<br />
Share your OS, panel and intended public services if you need help tailoring the checklist. Keep credentials and private keys private.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b">Hardening a VPS is an ongoing process: reduce exposed services, protect administrator access, keep software supported and make recovery verifiable. This checklist gives you evidence to collect, not just settings to copy.</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Scope:</span> Examples target systemd-based Ubuntu/Debian. Adapt package, service and firewall commands for other distributions. On a hosting-panel server, follow vendor-supported procedures so panel updates do not undo your changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Safety first:</span> Test the provider console, save configuration backups and keep your current SSH session open. Make one access-control change at a time and confirm a second login works. Never use your only production server to experiment with an unreviewed hardening script.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">1. Protect the account that owns the VPS</span></span><br />
Enable MFA on the provider, registrar, DNS and backup accounts. Store recovery codes securely and use unique passwords. Review API tokens, team access and billing/contact recovery paths. A hardened guest cannot prevent an attacker with provider-console access from replacing its disks.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Remove obsolete users/tokens, test your recovery procedure and confirm security notifications go to a monitored address.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">2. Inventory users, services and public listeners</span></span><br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>cat /etc/os-release
getent passwd
getent group sudo
sudo ss -lntup
systemctl --failed
systemctl list-unit-files --state=enabled</code></div></div>Review human users, service accounts and privileged groups. Do not delete unfamiliar system accounts without understanding their purpose. Bind database/cache services to loopback or the required private interface. Remove obsolete software after checking dependencies.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> From an external machine you control, test only your server's intended ports. Check IPv4 and IPv6; a local listener list alone does not prove what the Internet can reach.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">3. Use named admins and tested SSH keys</span></span><br />
Each administrator should have their own account/key so access can be revoked individually. Protect private keys with a passphrase and keep them off the server. Confirm key login and sudo in a new session before disabling any existing method.<br />
<br />
For a standalone server where keyboard-interactive MFA is not used, the intended SSH policy may include:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no</code></div></div>Back up the configuration and edit the effective file/snippet with sudoedit. Inspect Include order, provider snippets and Match blocks. Validate and review before reloading:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo /usr/sbin/sshd -t
sudo /usr/sbin/sshd -T | grep -E '^(permitrootlogin|pubkeyauthentication|passwordauthentication|kbdinteractiveauthentication) '</code></div></div>If syntax is valid, use the appropriate reload mechanism; commonly sudo systemctl reload ssh on Ubuntu/Debian. Then test a fresh login. For conditional Match blocks, inspect the actual user/client context with sshd -T -C. Do not disable keyboard-interactive if your intended MFA depends on it.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Your named admin can log in and use sudo; root/password access behaves as intended. Keep the console available until all checks pass.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">4. Restrict management access at both firewall layers</span></span><br />
Use the provider firewall and a supported guest firewall. Permit your actual SSH port before enabling restrictions. Prefer a VPN or trusted source addresses for SSH and panel interfaces; account for a changing home IP and recovery access. Expose web ports only for services that need them. Do not expose database, Redis or Docker management endpoints publicly.<br />
<br />
For an existing UFW deployment, inspect without changing policy:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo ufw status verbose
sudo ufw status numbered</code></div></div>Do not layer UFW over a panel-managed firewall without checking compatibility. Review IPv6 and Docker forwarding/published-port behavior separately.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Fresh management connections succeed from approved paths and unintended public ports are unreachable. A hidden panel URL or custom SSH port is not an authentication control.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">5. Patch every software layer</span></span><br />
Track the OS, kernel, panel, plugins, PHP/runtime versions, web apps and dependencies. Remove end-of-life versions or plan a supported migration. Review updates and backups before applying them:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo apt update
apt list --upgradable</code></div></div>Use automatic security updates where supported, but confirm allowed repositories, logs, failure alerts and reboot policy. Third-party software may require a separate update process. Schedule and verify reboots when needed; installing a kernel update does not mean the running kernel changed.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Update jobs finish successfully, notifications arrive and the application still works after maintenance.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">6. Protect hosting panels and applications</span></span><br />
Use a valid TLS certificate, unique admin credentials and supported MFA. Restrict panel access and disable unused plugins/API access. Give applications separate database users with only needed privileges. Keep secrets outside public web roots and avoid storing them in repositories or world-readable files.<br />
<br />
Do not solve ownership errors with recursive chmod 777. Do not disable SELinux/AppArmor to make an application start; examine the denial and adjust the intended policy. Validate application-specific permissions and test uploads, scheduled jobs and updates afterward.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> The panel is reachable only through intended paths; TLS validates without bypassing warnings; application accounts cannot access unrelated databases/files.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">7. Treat brute-force protection as an extra layer</span></span><br />
Fail2ban or an equivalent tool can help with services that still need public login endpoints. Verify the selected filter reads the actual log/journal and the ban action uses your active firewall. Account for reverse proxies so legitimate visitors are not all attributed to the proxy's IP. Use supported real-client-IP configuration and trusted proxy ranges.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Inspect service status, configuration checks and jail counters using the installed tool's documentation. Keep a console and recovery path for accidental bans. Rate limiting does not replace keys, MFA or timely patching.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">8. Make detection useful</span></span><br />
Monitor unexpected successful logins, privileged changes, new listeners, failed update/backup jobs and resource exhaustion. Retain logs long enough to investigate and consider a protected off-server copy. Basic inspection:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>sudo journalctl -u ssh --since "24 hours ago" --no-pager
sudo journalctl -p warning -b --no-pager
last -n 20
systemctl --failed</code></div></div>Service/log names vary; also inspect application and panel audit logs. Failed SSH attempts are common on public hosts. An unfamiliar successful login or a changed authorized_keys file deserves investigation.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Trigger a harmless test alert and confirm someone receives it. Redact IPs, usernames and personal data before sharing logs publicly.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">9. Keep independent, tested backups</span></span><br />
Use encrypted off-site backups, retention and credentials with limited scope. Include application-consistent database backups, files, configuration and rebuild instructions. Protect at least one copy from deletion by a compromised production server where feasible. A snapshot under the same provider account is useful, but shares that account's failure risk.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Verify:</span> Restore into an isolated environment and test the application. Record how much data/time recovery would lose. Monitor backup age and restore failures.<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">10. Prepare for compromise before it happens</span></span><br />
Keep a private inventory, contacts and rebuild plan. If compromise is suspected, use the provider console/trusted workstation, preserve relevant evidence and isolate the affected system as appropriate. Do not assume deleting one suspicious file makes the host trustworthy. Plan to rebuild from a known-good image and rotate exposed credentials from a clean device after containment. Check adjacent provider, DNS, backup and application accounts too.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Monthly review:</span> Are all administrators still authorized? Are OS/apps supported? Are only necessary ports exposed? Do alerts arrive? Has a restore been tested? Repeat after major deployments or staff changes.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Further reading</span><ul class="mycode_list"><li><a href="https://ubuntu.com/server/docs/how-to/security/openssh-server/" target="_blank" rel="noopener" class="mycode_url">Ubuntu OpenSSH guidance</a><br />
</li>
<li><a href="https://ubuntu.com/server/docs/firewalls/" target="_blank" rel="noopener" class="mycode_url">Ubuntu firewall documentation</a><br />
</li>
<li><a href="https://ubuntu.com/server/docs/how-to/software/automatic-updates/" target="_blank" rel="noopener" class="mycode_url">Ubuntu automatic updates</a><br />
</li>
<li><a href="https://man.openbsd.org/sshd_config" target="_blank" rel="noopener" class="mycode_url">OpenSSH configuration reference</a><br />
</li>
<li><a href="https://adminsforum.com/showthread.php?tid=22" target="_blank" rel="noopener" class="mycode_url">15 Things to Do After Buying a New VPS</a><br />
</li>
</ul>
<br />
Share your OS, panel and intended public services if you need help tailoring the checklist. Keep credentials and private keys private.]]></content:encoded>
		</item>
	</channel>
</rss>