RCE in OCS Inventory NG 2.7 via SNMP MIB File Handling
A remote command execution vulnerability exists in OCS Inventory NG version 2.7 due to improper handling of shell metacharacters in the mib_file parameter within plugins/main_sections/ms_config/ms_snmp_config.php. The vulnerable function get_mib_oid fails to sanitize user input, allowing attackers to inject arbitrary shell commands that are executed by require/commandLine/CommandLine.php.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary commands on the server with the privileges of the web server process, potentially leading to full system compromise.
If you can’t patch tonight, do this now.
Restrict access to the affected endpoints, implement strict input validation and sanitization for user-supplied parameters, and consider disabling or removing the vulnerable SNMP configuration plugin if not required.
Patch, then assume compromise.
Upgrade to a patched version of OCS Inventory NG where input validation and sanitization are properly implemented for the mib_file parameter. Alternatively, apply vendor-provided patches addressing this issue.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.