module

Cacti color filter authenticated SQLi to RCE

Disclosed
Jun 17, 2020
Created
Jun 1, 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.

Authors

h00die
Leonardo Paiva
Mayfly277

Platform

PHP

Architectures

php

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

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.