<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP &#8211; CartDeveloper</title>
	<atom:link href="https://cartdeveloper.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://cartdeveloper.net</link>
	<description>OpenCart Extension Developer</description>
	<lastBuildDate>Sun, 01 Nov 2026 11:24:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.9</generator>

<image>
	<url>https://cartdeveloper.net/wp-content/uploads/2025/03/android-chrome-512x512-1-150x150.png</url>
	<title>PHP &#8211; CartDeveloper</title>
	<link>https://cartdeveloper.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP2Shell: Patch Every PHP Runtime and Check Your Store</title>
		<link>https://cartdeveloper.net/php2shell-php-patching-store-security/</link>
					<comments>https://cartdeveloper.net/php2shell-php-patching-store-security/#respond</comments>
		
		<dc:creator><![CDATA[cartdevauthor]]></dc:creator>
		<pubDate>Sun, 01 Nov 2026 11:24:44 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Patch Management]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP2Shell]]></category>
		<category><![CDATA[Store Security]]></category>
		<guid isPermaLink="false">https://cartdeveloper.net/?p=10048</guid>

					<description><![CDATA[Inventory and patch every PHP runtime serving your store—not just the CLI. Then check for persistence and respond to signs of compromise with credential rotation and clean recovery.]]></description>
										<content:encoded><![CDATA[<p><!-- EDITOR NOTES (delete before publishing):
- Source-verification limitation: I could not independently open the cited sources. The October 2026 disclosures, CVE identifiers, exploitation reports, patch thresholds, and Ubuntu package revision therefore remain unverified in this review. Confirm those publication-critical details before publishing; this pass is not independent confirmation of them.
- The operational guidance is appropriately cautious: it distinguishes CLI and web runtimes, accounts for vendor backports, separates patching from incident recovery, and protects the temporary diagnostic.
- Consider explicitly recommending revocation of active sessions and tokens during compromise recovery, alongside credential rotation.
- Remove the utm_source=openai tracking parameters from the inline Ubuntu links.
--></p>
<p>PHP2Shell is being exploited: Palo Alto Networks has confirmed attacks against internet-exposed PAN-OS management interfaces involving CVE-2026-109618 and CVE-2026-109619. If your store or an administration tool runs on affected PHP, check every web runtime—not just the version returned by <code>php -v</code>—then investigate for signs of compromise. (<a href="https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/">unit42.paloaltonetworks.com</a>)</p>
<h2>Key takeaways</h2>
<ul>
<li>Inventory PHP-FPM services and pools, Apache modules, containers, and separately hosted admin tools.</li>
<li>Install vendor-fixed packages, restart affected workers, and verify the runtime serving each site.</li>
<li>Check PHP’s separate October 23 session-upload-progress guidance; the October 21 updates do not settle that additional case.</li>
<li>Patching and incident response are separate jobs. Investigate unexpected changes and recover from clean sources when necessary.</li>
</ul>
<h2>What changed—and what the exploitation reports establish</h2>
<p>PHP published emergency security releases on <strong>October 21, 2026</strong>. The vulnerabilities involve corruption during out-of-memory handling and request-owned state surviving after its memory has been freed. Both can lead to unauthenticated remote code execution under applicable conditions. (<a href="https://www.php.net/archive/2026.php">php.net</a>)</p>
<p>Dream Research’s October 26 report, updated October 29, describes a campaign that reportedly rooted <strong>25 servers</strong>, involving PAN-OS devices and a chain combining PHP2Shell with a Linux kernel privilege-escalation vulnerability. Unit 42 subsequently confirmed that it independently verified the attacker’s tooling and reported results. This is evidence of exploitation—not evidence that PHP2Shell alone automatically provides root access on every store server. (<a href="https://dreamgroup.com/blog/chained-php2shell-exploit-roots-25-servers">dreamgroup.com</a>)</p>
<p>Keep telemetry claims in context. Wiz’s October 27 report said it had not observed successful end-to-end exploitation <strong>in its own telemetry</strong>. That limited observation is not a reason to disregard the subsequently confirmed PAN-OS campaign. (<a href="https://www.wiz.io/blog/php2shell-exploitation-so-far">wiz.io</a>)</p>
<h3>Verified upstream patch thresholds</h3>
<p>The original fixes are included in these upstream releases: (<a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">github.com</a>)</p>
<table>
<thead>
<tr>
<th>PHP branch</th>
<th>First upstream release containing the original fixes</th>
</tr>
</thead>
<tbody>
<tr>
<td>8.2</td>
<td>8.2.35</td>
</tr>
<tr>
<td>8.3</td>
<td>8.3.36</td>
</tr>
<tr>
<td>8.4</td>
<td>8.4.27</td>
</tr>
<tr>
<td>8.5</td>
<td>8.5.12</td>
</tr>
</tbody>
</table>
<p><strong>Distribution backports use different version numbers.</strong> For example, Ubuntu’s USN-8948-1 lists <code>8.3.6-0ubuntu0.24.04.13</code> as the corrected PHP 8.3 package version for Ubuntu 24.04 LTS, including PHP-FPM. Compare the complete package revision with your vendor’s advisory; an <code>8.3.6</code> runtime string alone cannot establish patch status. (<a href="https://ubuntu.com/security/notices/USN-8948-1">ubuntu.com</a>)</p>
<h2>Why this matters for stores and PHP sites</h2>
<p>The vulnerable component is PHP itself, not a particular shopping-cart extension. Updating OpenCart, WooCommerce, Magento, or your payment integration does not replace an affected interpreter. The researchers demonstrated that exposure is not limited to the applications used in their examples. (<a href="https://www.php2shell.com/">php2shell.com</a>)</p>
<p>Sensitive PHP process memory can contain passwords, authentication tokens, and API keys. Memory disclosure may occur without an attacker first installing a web shell, so a filesystem check is necessary but not sufficient. (<a href="https://www.php2shell.com/">php2shell.com</a>)</p>
<h2>1. Inventory every runtime serving your store</h2>
<p>We recommend one inventory row per website or administration tool. Record its hostname, server or container, web handler, FPM service and pool where applicable, package source, full package revision, and verification status.</p>
<p>Include staging sites, old storefronts, database administration interfaces, and hosting-panel applications. Trace each virtual host to its actual PHP handler. FPM pools have their own settings, and web-server configuration can pass additional PHP settings to them. (<a href="https://www.php.net/manual/en/install.fpm.configuration.php">php.net</a>)</p>
<p>For Docker deployments, list stopped containers too, so an old deployment is not overlooked:</p>
<pre><code class="language-bash">docker ps -a --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
</code></pre>
<p>Docker normally lists only running containers; <code>-a</code> includes stopped ones. Treat this as a starting inventory, not proof of what PHP an image contains. (<a href="https://docs.docker.com/reference/cli/docker/container/ls/">docs.docker.com</a>)</p>
<p>To identify the interpreter handling a web request, use a temporary diagnostic <strong>behind an existing IP restriction or authentication control</strong>, not a public <code>phpinfo()</code> page:</p>
<pre><code class="language-php">&lt;?php
header('Content-Type: text/plain');
header('Cache-Control: no-store');

printf(&quot;PHP=%s\nSAPI=%s\n&quot;, PHP_VERSION, PHP_SAPI);
printf(
    &quot;upload_progress=%s\n&quot;,
    ini_get('session.upload_progress.enabled')
);
</code></pre>
<p><code>PHP_VERSION</code> identifies the running interpreter, <code>PHP_SAPI</code> identifies its server interface, and <code>ini_get()</code> reports the effective directive value. Remove the diagnostic after checking every relevant backend or replica. (<a href="https://www.php.net/manual/en/reserved.constants.php">php.net</a>)</p>
<p>Match those results to package or image records. <strong>A corrected CLI installation is not evidence that every web worker has been updated.</strong> Ubuntu explicitly notes that applications may still need restarting after packages are upgraded. (<a href="https://ubuntu.com/blog/php2shell-vulnerability-fixes-available?utm_source=openai">ubuntu.com</a>)</p>
<h2>2. Patch, restart, and verify again</h2>
<p>Use the security advisory for the repository that supplied your PHP packages. Do not mix distribution packages, third-party repositories, and manually compiled binaries when deciding whether a runtime is fixed.</p>
<p>For an Ubuntu system, the vendor’s general update procedure is:</p>
<pre><code class="language-bash">sudo apt update
sudo apt upgrade
</code></pre>
<p>Then restart the services actually using PHP. For example, on a server using the Ubuntu PHP 8.3 FPM service:</p>
<pre><code class="language-bash">sudo systemctl restart php8.3-fpm
</code></pre>
<p>For Apache with <code>mod_php</code>, restart Apache instead. Repeat for every affected service; updating files without replacing running processes is insufficient. (<a href="https://ubuntu.com/blog/php2shell-vulnerability-fixes-available?utm_source=openai">ubuntu.com</a>)</p>
<p>For containers, deploy an updated image—or rebuild your application image with corrected PHP packages—and recreate every affected replica. Downloading a new image is not the same as replacing an existing container; Compose recreates containers when their image or configuration changes. (<a href="https://docs.docker.com/reference/cli/docker/compose/up/">docs.docker.com</a>)</p>
<p>Repeat the protected web check, confirm the vendor package revision, and test checkout, payment callbacks, administration, and scheduled jobs.</p>
<h2>3. Address the separate October 23 advisory</h2>
<p>PHP’s <strong>October 23, 2026</strong> notice describes an additional, unusual RCE vector, tracked as <strong>CVE-2026-115560</strong>. It requires all of these conditions:</p>
<ul>
<li><code>session.serialize_handler</code> is configured as <code>php_binary</code> or <code>php_serialize</code>;</li>
<li>application code changes it to <code>php</code> using <code>ini_set()</code> before <code>session_start()</code>;</li>
<li>session upload progress remains enabled.</li>
</ul>
<p>PHP recommends disabling upload progress until the next regular bugfix release for this remaining case: (<a href="https://www.php.net/archive/2026.php">php.net</a>)</p>
<pre><code class="language-ini">session.upload_progress.enabled = 0
</code></pre>
<p>Apply this in the effective web PHP configuration, restart the workers, and verify the setting. Keep it disabled if you already applied the mitigation. PHP says applications that never change the serializer at runtime can keep the feature enabled. <strong>Do not interpret the original patch table as covering this additional condition.</strong> (<a href="https://www.php.net/archive/2026.php">php.net</a>)</p>
<p>Disabling upload progress is not a replacement for the original security updates. PHP’s advisory states that no generic configuration mitigation covers every stale-state path. (<a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">github.com</a>)</p>
<h2>4. Review logs and look for persistence</h2>
<p>If you suspect compromise, preserve relevant logs and system evidence before deleting files or rebuilding. Isolate affected systems while arranging evidence collection and recovery. CISA’s response guidance emphasizes preserving volatile evidence and investigating persistence. (<a href="https://www.cisa.gov/sites/default/files/2023-10/StopRansomware-Guide-508C-v3_1.pdf">cisa.gov</a>)</p>
<p>Review reverse-proxy, web-server, PHP-FPM, application, authentication, and outbound-network logs. Correlate unusual multipart requests, repeated memory-exhaustion errors, worker crashes, and subsequent unexpected activity. These signals are investigation leads, not proof by themselves; their absence does not establish safety. (<a href="https://www.php2shell.com/">php2shell.com</a>)</p>
<p>For a store, we would prioritize this review checklist:</p>
<ul>
<li>Compare application files, extensions, templates, and checkout JavaScript with trusted deployment artifacts.</li>
<li>Investigate unexpected executable files in upload, cache, image, and temporary directories.</li>
<li>Inspect <code>.user.ini</code>, <code>.htaccess</code>, and PHP configuration for unauthorized changes, particularly <code>auto_prepend_file</code>, which loads a file before the main script. (<a href="https://www.php.net/manual/en/configuration.file.per-user.php">php.net</a>)</li>
<li>Review cron jobs, systemd services, SSH keys, store administrators, API users, and payment configuration.</li>
</ul>
<p>Do not restrict the investigation to files changed after disclosure. Establish the earliest plausible compromise time and investigate beyond a single suspicious file: attackers can maintain more than one persistence mechanism. (<a href="https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf">cisa.gov</a>)</p>
<h2>5. Rotate exposed credentials and recover cleanly</h2>
<p>If you find compromise or credible secret exposure, revoke affected credentials from a trusted machine. Scope the work to what the PHP process could access: database passwords, store-admin credentials, payment API keys, SMTP credentials, deployment tokens, and cloud credentials. Coordinate permanent replacement credentials with cleanup so they are not immediately exposed again. (<a href="https://www.php2shell.com/">php2shell.com</a>)</p>
<p>If you cannot establish system integrity, rebuild from trusted installation sources and restore a <strong>known-clean backup predating the suspected compromise</strong>. Patch before restoring public access, investigate restored data, reconcile legitimate orders, and monitor for re-entry. CISA’s playbook recommends clean-source reimaging and continued monitoring after eradication. (<a href="https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf">cisa.gov</a>)</p>
<p>For longer-term access and update hygiene, see our <a href="https://cartdeveloper.net/beginners-guide-to-wordpress-security/">Beginner’s Guide to WordPress Security</a>.</p>
<h2>FAQ</h2>
<h3>Does PHP2Shell affect PHP-FPM?</h3>
<p>Yes. PHP’s advisory includes PHP-FPM among the affected web runtimes. Exploit conditions differ between handlers; FPM is not a blanket exemption. (<a href="https://www.php.net/archive/2026.php">php.net</a>)</p>
<h3>Can an older-looking distribution package be fixed?</h3>
<p>Yes. Vendors can backport fixes while retaining the upstream base version. Check the complete package revision against the advisory for your distribution release. (<a href="https://ubuntu.com/security/notices/USN-8948-1">ubuntu.com</a>)</p>
<h3>Does patching remove an existing web shell?</h3>
<p>No. Treat patch deployment and compromise recovery as separate tasks. Investigate persistence and restore system integrity before considering the incident resolved. (<a href="https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf">cisa.gov</a>)</p>
<h2>Sources</h2>
<ul>
<li><a href="https://www.php.net/archive/2026.php">PHP: October 21 security advisory and October 23 follow-up</a></li>
<li><a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w">PHP: Out-of-memory corruption advisory</a></li>
<li><a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">PHP: Stale global state advisory</a></li>
<li><a href="https://ubuntu.com/security/notices/USN-8948-1">Ubuntu: USN-8948-1 fixed package versions</a></li>
<li><a href="https://ubuntu.com/blog/php2shell-vulnerability-fixes-available">Ubuntu: PHP2Shell patching and restart guidance</a></li>
<li><a href="https://dreamgroup.com/blog/chained-php2shell-exploit-roots-25-servers">Dream Research: Reported 25-server campaign</a></li>
<li><a href="https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/">Unit 42: Verified exploitation update</a></li>
<li><a href="https://www.wiz.io/blog/php2shell-exploitation-so-far">Wiz: Exploitation observations</a></li>
<li><a href="https://www.php2shell.com/">Researchers: PHP2Shell impact and detection guidance</a></li>
<li>PHP manuals: <a href="https://www.php.net/manual/en/install.fpm.configuration.php">FPM configuration</a>, <a href="https://www.php.net/manual/en/reserved.constants.php">runtime constants</a>, <a href="https://www.php.net/manual/en/function.ini-get.php">ini_get</a>, <a href="https://www.php.net/manual/en/configuration.file.per-user.php">.user.ini</a>, <a href="https://www.php.net/manual/en/ini.core.php">core directives</a></li>
<li>Docker documentation: <a href="https://docs.docker.com/reference/cli/docker/container/ls/">Container inventory</a>, <a href="https://docs.docker.com/reference/cli/docker/compose/up/">container recreation</a></li>
<li>CISA: <a href="https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf">Incident response playbooks</a>, <a href="https://www.cisa.gov/sites/default/files/2023-10/StopRansomware-Guide-508C-v3_1.pdf">StopRansomware response guide</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://cartdeveloper.net/php2shell-php-patching-store-security/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
