Why Firewalls Are Web Applications—and Often Softer Targets

· Original article ↗

Summary

The PHP2Shell case shows how predictable appliance software can expose web-facing management interfaces. Dream reported that attackers used the exploit chain to gain root on 25 systems; the article advises restricting management access.

Key points

  • Palo Alto Networks confirmed exploitation of two unauthenticated PHP vulnerabilities against internet-exposed PAN-OS management interfaces.
  • Dream reported that the actor obtained and decrypted PAN-OS firmware, extracted PHP libraries, and built memory profiles for nine software versions.
  • The investigation attributed root access on 25 systems—24 firewalls and one management server—to a chain combining PHP2Shell with the Fragnesia Linux kernel flaw.
  • Crafted multipart uploads can exhaust PHP memory during request parsing, leaving uninitialized request memory or a pointer to freed memory.
  • The PAN-OS exploit reportedly leaked the libphp.so base address through a Set-Cookie header to defeat ASLR; SELinux confined the resulting shell.
  • The article recommends removing internet access to management interfaces and limiting them to trusted internal IP addresses, while accounting for the limits of web application firewalls.

Article Details

Topic
PHP2Shell exploitation of PHP vulnerabilities against internet-exposed PAN-OS management interfaces and the security risks of web applications on network appliances.

MITRE ATT&CK

CVE

People

Vendors

Products

Countries

Related Articles