PHP2Shell: How RunSafe Protect Disrupts Memory Exploitation at Runtime

See how RunSafe Protect disrupted 100% of tested PHP2Shell exploit attempts without patching the underlying vulnerability or modifying source code.

 

PHP2Shell Exploit Prevention with RunSafe Protect

PHP2Shell demonstrates how a use-after-free vulnerability can be weaponized into a working memory exploit, allowing attackers to redirect execution by relying on predictable memory locations.

In this video, we examine the results of testing a working PHP2Shell exploit against software with and without RunSafe Protect. Without protection, the exploit succeeded in all 10 attempts. With RunSafe Protect enabled, all 10 exploit attempts failed at the first gadget in the attack chain.

Through load-time function randomization, RunSafe Protect changes where code resides in memory, disrupting the predictable memory layout that exploits depend on without requiring source code changes.

While patching remains essential, these results demonstrate the value of runtime protection as an additional layer of defense, helping organizations protect critical software while underlying vulnerabilities are addressed.

CRA Readiness: Build an SBOM You Can Act On

CRA Readiness: Build an SBOM You Can Act On

Under the Cyber Resilience Act, having an SBOM is only the beginning. Manufacturers need to know exactly what software is in each product release and be able to quickly determine which products are affected when a new vulnerability emerges. For embedded software, that...

read more