CVE-2007-2939
NoneCVSS
—
EPSS
64.0%
Published
May 31, 2007
CISA due date
—
Cloudanix analysis
An old chat program lets attackers run their own code on the server by sending a specially crafted web link.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Remote file inclusion in basepath parameter allows arbitrary PHP code execution from attacker-controlled URLs in ITX.php, IT_Error.php, and IT.php.
Why it matters to the business
Attackers can fully compromise the chat server, leading to data theft, defacement, or use as a foothold for further network attacks on an unmaintained product with no patches available.
How an attack unfolds
An attacker crafts HTTP requests supplying a remote URL in the basepath parameter to the vulnerable include/pear scripts, causing the server to fetch and execute malicious PHP code; public exploits have been available for years.
How to fix it
Remove or isolate the affected Mazen's PHP Chat 3.0.0 deployment immediately; no fixed versions exist and the product appears abandoned.
How to confirm the fix worked
Scan for presence of the three include/pear scripts and test whether the basepath parameter accepts remote URLs; confirm the application is no longer reachable from the internet.
Typical attack path
- Identify publicly reachable instances of Mazen's PHP Chat 3.0.0
- Send GET or POST requests to include/pear/ITX.php, IT_Error.php, or IT.php with basepath set to an attacker-controlled URL containing PHP payload
- Server fetches and executes the remote code, establishing a shell or web shell
- Attacker escalates privileges or pivots within the environment
How to detect it
Review web server access logs for requests to include/pear/IT*.php containing basepath= followed by http:// or https:// URLs; search for unexpected outbound connections or new PHP files created around the time of suspicious requests.
- basepath=http
- /include/pear/ITX.php
- /include/pear/IT_Error.php
- /include/pear/IT.php
What your security team should do
- Block all external access to the application
- Hunt for any historical compromise artifacts given the 2007 disclosure and available exploits
- Replace the chat functionality with a supported modern alternative
The record
Multiple PHP remote file inclusion vulnerabilities in Mazen's PHP Chat 3.0.0 allow remote attackers to execute arbitrary PHP code via a URL in the basepath parameter to (1) ITX.php, (2) IT_Error.php, or (3) IT.php in include/pear/.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|