CVE-2023-53947
8.4OCS Inventory NG · Windows Agent
OCS Inventory NG Windows Agent contains an unquoted service path vulnerability allowing local attackers to escalate privileges to system level by placing a malicious executable in the path.
Executive summary
A local privilege escalation vulnerability in the OCS Inventory NG Windows Agent allows low-privileged users to achieve full system-level control.
Vulnerability
The application is affected by an unquoted service path vulnerability (CWE-428), which occurs because the service binary path contains spaces and is not enclosed in quotation marks. This allows a local attacker with standard user privileges to place a malicious executable within the path hierarchy, which the service will then execute with SYSTEM-level privileges upon restart.
Business impact
Successful exploitation of this vulnerability results in a total compromise of the affected host. An attacker who has already gained limited local access can escalate their privileges to the highest level, effectively bypassing all local OS-level security controls. Given the CVSS score of 8.4, this represents a high-severity threat that could lead to data theft, lateral movement within the network, or persistent malware installation.
Remediation
Immediate Action: Update the OCS Inventory NG Windows Agent to version 2.3.1.0 or later to resolve the unquoted service path configuration.
Proactive Monitoring: Review system service configurations for any services utilizing unquoted paths, and monitor event logs for unexpected service restarts or new unauthorized executables created within the C:\Program Files directory.
Compensating Controls: If immediate patching is not feasible, ensure that standard users do not have write permissions to the C:\Program Files or C:\Program Files (x86) directories to prevent the placement of malicious binaries.
Exploitation status
Public Exploit Available: Yes, a proof-of-concept exploit is available via ExploitDB (EDB-ID 51389).
Analyst recommendation
This vulnerability presents a significant risk to the integrity and security of any Windows system running the OCS Inventory NG Agent. Organizations should prioritize updating to version 2.3.1.0 immediately to eliminate the possibility of local privilege escalation. Ensuring that service paths are properly quoted and restricted is a standard security practice that must be verified across all deployed agents.
Sources
Originally found and disclosed by msd0pe, per the CVE Program record.
- ExploitDB-51389 Exploit / PoC
- Official Product Homepage
- VulnCheck Advisory: OCS Inventory NG 2.3.0.0 Unquoted Service Path Privilege Escalation Third-party advisory