An authenticated attacker can create dangerous directory names on the system and alter sensitive configuration parameters through the web portal. Those two defects combined then allows to inject arbitrary OS commands inside shell_exec() calls, thus achieving arbitrary code execution.
Linux
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/librenms_authenticated_rce_cve_2024_51092
msf exploit(librenms_authenticated_rce_cve_2024_51092) > show targets
...targets...
msf exploit(librenms_authenticated_rce_cve_2024_51092) > set TARGET < target-id >
msf exploit(librenms_authenticated_rce_cve_2024_51092) > show options
...show and set options...
msf exploit(librenms_authenticated_rce_cve_2024_51092) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security