It's unfortunate that this vulnerability led to so many people losing their Wednesdays, but showing that the CVE can be exploited gives some solace.
Maybe there's a silver lining to PHP2Shell being hard but still exploitable? Perhaps that combination helped evoke enough worry to spread awareness—and reminded some people of how to update their backends for next time—while not quite leaving us vulnerable to a Tom Scott Single Point of Failure scenario or worse.
First, I added a php-version.php page, which was served alongside the already PHP-hosted index.html page, in case the active participation of the PHP interpreter was necessary for the exploit. While some of the early reporting on PHP2Shell suggested this maybe wasn’t a strict requirement of exploitation (e.g. https://www.wiz.io/blog/php2shell-php-rce : “Exploitation does not depend on a flaw in the application’s code: even a simple “Hello World” application running on an affected PHP version can be vulnerable.”), it seems plausible to me that the part of the PHP SAPI server that serves .html files could be immune to these tasks.
Do I not understand this part or does the author? Unless you configure your web server to handle .html files through PHP, there is no PHP SAPI for serving html. Or does he mean he used the PHP included dev HTTP server?
isuffix | 5 days ago
It's unfortunate that this vulnerability led to so many people losing their Wednesdays, but showing that the CVE can be exploited gives some solace.
Maybe there's a silver lining to PHP2Shell being hard but still exploitable? Perhaps that combination helped evoke enough worry to spread awareness—and reminded some people of how to update their backends for next time—while not quite leaving us vulnerable to a Tom Scott Single Point of Failure scenario or worse.
mxey | 4 days ago
Do I not understand this part or does the author? Unless you configure your web server to handle .html files through PHP, there is no PHP SAPI for serving html. Or does he mean he used the PHP included dev HTTP server?