CVE-2007-3306
NoneCVSS
—
EPSS
64.4%
Published
Jun 21, 2007
CISA due date
—
Cloudanix analysis
An old billing tool has a flaw that lets outsiders run any commands they want on the web server by loading a file from the internet.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows remote attackers to include and execute arbitrary PHP code from a remote server by manipulating the config[include_dir] parameter in crontab/run_billing.php.
Why it matters to the business
Enables complete server compromise, leading to data theft, defacement, or use as a pivot for further attacks. The application is outdated with no official fixes available.
How an attack unfolds
An attacker crafts a specially formatted HTTP request to the vulnerable script, supplying a URL pointing to attacker-controlled PHP code in the config[include_dir] parameter, which gets included and executed by the PHP interpreter.
How to fix it
Remove the vulnerable MiniBill application or manually patch the code to sanitize the config[include_dir] parameter and avoid remote includes.
How to confirm the fix worked
Inspect the source code of run_billing.php to ensure the parameter is not used in include statements without validation; test by attempting to include a local file only.
Typical attack path
- Locate the crontab/run_billing.php endpoint
- Prepare malicious PHP payload on attacker server
- Send GET request with config[include_dir] set to attacker URL
- Execute arbitrary code on target server
How to detect it
Review web server access logs for requests to crontab/run_billing.php containing config[include_dir] with external URLs or suspicious values.
- config[include_dir]=http
- crontab/run_billing.php
What your security team should do
- Immediately isolate or decommission the affected application
- Monitor for any remaining instances
- Replace with modern billing software
The record
PHP remote file inclusion vulnerability in crontab/run_billing.php in MiniBill 1.2.5 allows remote attackers to execute arbitrary PHP code via a URL in the config[include_dir] parameter, a different vector than CVE-2006-4489.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|