Description
This module exploits a SQL injection vulnerability in openDCIM's install.php endpoint (CVE-2026-28515) to achieve remote code execution. The install.php script remains accessible after installation and processes LDAP configuration parameters via UpdateParameter() without authentication or input sanitization, allowing stacked SQL queries.
The exploit chain works by injecting SQL through the LDAP configuration form to overwrite the Graphviz dot binary path in fac_Config, then triggering report_network_map.php which calls exec() with the poisoned value. A backup of the original configuration is created before exploitation and restored after payload delivery.
Tested against openDCIM 23.04 through 25.01 on Ubuntu with Apache.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/opendcim_install_sqli_rcemsf undefined(opendcim_install_sqli_rce) > show actions ...actions...msf undefined(opendcim_install_sqli_rce) > set ACTION < action-name >msf undefined(opendcim_install_sqli_rce) > show options ...show and set options...msf undefined(opendcim_install_sqli_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub