Rapid7 Vulnerability & Exploit Database

Cacti RCE via SQLi in pollers.php

Back to Search

Cacti RCE via SQLi in pollers.php

Disclosed
12/20/2023
Created
02/02/2024

Description

This exploit module leverages a SQLi (CVE-2023-49085) and a LFI (CVE-2023-49084) vulnerability in Cacti versions prior to 1.2.26 to achieve RCE. Authentication is needed and the account must have access to the vulnerable PHP script (`pollers.php`). This is granted by setting the `Sites/Devices/Data` permission in the `General Administration` section.

Author(s)

  • Aleksey Solovev
  • Christophe De La Fuente

Platform

Windows

Architectures

cmd

Development

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/multi/http/cacti_pollers_sqli_rce
msf exploit(cacti_pollers_sqli_rce) > show targets
    ...targets...
msf exploit(cacti_pollers_sqli_rce) > set TARGET < target-id >
msf exploit(cacti_pollers_sqli_rce) > show options
    ...show and set options...
msf exploit(cacti_pollers_sqli_rce) > 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

;