Rapid7 Vulnerability & Exploit Database

Cacti color filter authenticated SQLi to RCE

Back to Search

Cacti color filter authenticated SQLi to RCE

Disclosed
06/17/2020
Created
06/01/2021

Description

This module exploits a SQL injection vulnerability in Cacti 1.2.12 and before. An admin can exploit the filter variable within color.php to pull arbitrary values as well as conduct stacked queries. With stacked queries, the path_php_binary value is changed within the settings table to a payload, and an update is called to execute the payload. After calling the payload, the value is reset.

Author(s)

  • h00die
  • Leonardo Paiva
  • Mayfly277

Platform

PHP

Architectures

php

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

;