CVE-2019-25647
8.8PhreeSoft · PhreeBooks ERP
PhreeBooks ERP 5.2.3 contains a remote code execution vulnerability in the image manager, allowing authenticated attackers to upload and execute arbitrary PHP files.
Executive summary
A critical remote code execution vulnerability in PhreeBooks ERP 5.2.3 allows authenticated attackers to gain full system control via the image manager.
Vulnerability
This vulnerability, categorized as CWE-434, stems from a lack of file extension validation within the image manager endpoint. An authenticated attacker can upload a malicious PHP file and trigger its execution to establish a reverse shell or run arbitrary system commands.
Business impact
Successful exploitation allows an attacker to execute arbitrary code on the underlying server, leading to a complete compromise of the application and its data. Given the CVSS score of 8.8, this represents a high-severity risk that could result in unauthorized data access, lateral movement within the network, and significant operational downtime.
Remediation
Immediate Action: Upgrade to a patched version of PhreeBooks ERP if available, or restrict access to the image manager functionality to trusted administrative accounts only.
Proactive Monitoring: Review web server access logs for suspicious file uploads to the image manager directory and monitor for unusual outbound network connections originating from the web server.
Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to block file uploads containing executable extensions like .php or .php3.
Exploitation status
Public Exploit Available: Yes, a functional Python-based exploit exists on ExploitDB (EDB-ID 46645).
Analyst recommendation
The presence of a public exploit significantly elevates the risk associated with this vulnerability. Administrators should prioritize patching the affected software immediately. If an update is not feasible, implement strict access controls and WAF rules to prevent unauthorized users from interacting with the vulnerable image manager endpoint.
Sources
Originally found and disclosed by Metin Yunus Kandemir (kandemir), per the CVE Program record.
- ExploitDB-46645 Exploit / PoC
- Official Product Homepage
- Product Reference
- VulnCheck Advisory: PhreeBooks ERP 5.2.3 Remote Code Execution via Image Manager Third-party advisory