CVE-2007-3370
NoneCVSS
—
EPSS
74.5%
Published
Jun 22, 2007
CISA due date
—
Cloudanix analysis
An outdated web discussion board program contains flaws that let outsiders run their own programs on the server simply by sending a specially crafted web address.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Remote file inclusion in include.php and doctype.php allows unauthenticated attackers to supply arbitrary remote URLs via the sunPath and dir parameters, causing the PHP interpreter to fetch and execute attacker-controlled code on the server.
Why it matters to the business
Complete server compromise is possible on any remaining installations of this 2007-era PHP application, enabling data theft, malware deployment, or use as an attack pivot; the high EPSS score and public exploit availability increase urgency even for legacy systems.
How an attack unfolds
An attacker locates the vulnerable Sun Board endpoints, appends a remote URL containing malicious PHP to the sunPath or dir parameter, and the server includes and executes that code, establishing a web shell or running further commands.
How to fix it
Immediately isolate or decommission Sun Board instances; if any modern fork exists, upgrade to a version that removes the vulnerable parameters. Disable allow_url_include and allow_url_fopen in php.ini, and enforce strict input validation or removal of the affected scripts.
How to confirm the fix worked
Test the endpoints with a benign remote URL and confirm the application no longer fetches external content; review source for direct use of $_GET['sunPath'] or $_GET['dir'] without sanitization; scan the codebase for any remaining include() or require() calls using untrusted variables.
Typical attack path
- Scan for exposed Sun Board include.php and skin/board/default/doctype.php files
- Append a remote URL (http:// or ftp://) containing PHP code to the sunPath or dir parameter
- Issue the crafted GET request to trigger remote inclusion and code execution
- Use the resulting shell to drop additional payloads or pivot within the environment
How to detect it
Examine web server access logs (Apache, Nginx, IIS) for requests to include.php or doctype.php that contain sunPath or dir parameters with external URL schemes; inspect for subsequent PHP processes or file creations originating from those requests.
- include.php?sunPath=http
- doctype.php?dir=http
- sunPath=ftp://
- dir=php://
- GET /include.php?sunPath=
- GET /skin/board/default/doctype.php?dir=
What your security team should do
- Remove or firewall off all Sun Board deployments immediately
- Add WAF rules blocking requests containing sunPath= or dir= with http/https/ftp schemes
- Hunt historical logs for the indicators below to determine prior compromise
- Replace the application with a supported, actively maintained forum or CMS
The record
Multiple PHP remote file inclusion vulnerabilities in Sun Board 1.00.00 Alpha allow remote attackers to execute arbitrary PHP code via a URL in (1) the sunPath parameter to include.php or (2) the dir parameter to skin/board/default/doctype.php.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|