Cloudanix VulnDB

CVE-2007-3230

None

CVSS

—

EPSS

67.9%

Published

Jun 14, 2007

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Attend

An old web component can be tricked into running attacker-supplied code from the internet, giving outsiders full control of the server.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Remote Code Execution
Component
Library
Class
RCE
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Remote file inclusion in phphtml.php allows an attacker-supplied URL in the htmlclass_path parameter to be fetched and executed as PHP code, resulting in arbitrary code execution on the server.

Why it matters to the business

Successful exploitation grants full control of the affected web application and server, enabling data theft, site defacement, or use as a foothold for further attacks; the vulnerability is over 19 years old with public exploits available, so any remaining unpatched instances represent legacy risk that should be eliminated.

How an attack unfolds

An attacker identifies a site using the vulnerable PHP::HTML component, hosts a malicious PHP payload on an attacker-controlled server, then sends an HTTP request to phphtml.php setting htmlclass_path to the payload URL; the server fetches and executes the remote code.

How to fix it

Remove or replace the PHP::HTML 0.6.4 component; disable allow_url_include and allow_url_fopen in php.ini; place the application behind a web application firewall that blocks remote URLs in query parameters; migrate to a supported, actively maintained template or HTML handling library.

How to confirm the fix worked

Search the codebase for references to phphtml.php and the htmlclass_path parameter; attempt a controlled test request with a benign remote URL while monitoring for inclusion errors or execution; review web server configuration for allow_url_include settings.

Typical attack path

  1. Scan for publicly reachable instances of phphtml.php
  2. Host a malicious PHP file on an internet-accessible server
  3. Craft and send an HTTP GET or POST request supplying the malicious URL in the htmlclass_path parameter
  4. Achieve code execution and establish persistence or exfiltrate data

How to detect it

Inspect web server access logs for requests to phphtml.php that contain http:// or https:// values in the htmlclass_path parameter; look for unusual PHP execution or file fetches originating from web requests; correlate with outbound connections to unknown domains from the web server process.

  • phphtml.php?htmlclass_path=http
  • htmlclass_path=https://
  • GET /phphtml.php?htmlclass_path=

What your security team should do

  • Immediately inventory all web applications for the PHP::HTML component or phphtml.php files
  • Block or remove any remaining instances of the vulnerable library
  • Enforce php.ini hardening (allow_url_include=Off) across the environment
  • Add WAF rules that drop requests containing remote URLs in common inclusion parameters
  • Archive or decommission any legacy applications still running the 2007-era code

The record

PHP remote file inclusion vulnerability in phphtml.php in Idan Sofer PHP::HTML 0.6.4 allows remote attackers to execute arbitrary PHP code via a URL in the htmlclass_path parameter.

Affected packages

Ecosystem Package Introduced Fixed