Cacti Blind SQL Injection Flaw Enables Remote Code Execution

Cacti, the performance and fault management framework, has been discovered with a blind SQL injection vulnerability, which could reveal Cacti database contents or trigger remote code execution. 



The CVE for this vulnerability has been assigned with CVE-2023-51448, and the severity has been given as 8.8 (High).



This vulnerability existed due to insufficient sanitization of a parameter. However, Cacti has swiftly upon this vulnerability and patched this vulnerability.






Document

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto&display=swap');
*{
margin: 0; padding: 0;
text-decoration: none;
}
.container{
font-family: roboto, sans-serif;
width: 90%;
border: 1px solid lightgrey;
padding: 20px;
background: linear-gradient(2deg,#E0EAF1 100%,#BBD2E0 100%);
margin: 20px auto ;
border-radius: 40px 10px;
box-shadow: 5px 5px 5px #e2ebff;
}
.container:hover{
box-shadow: 10px 10px 5px #e2ebff;

}
.container .title{
color: #015689;
font-size: 22px;
font-weight: bolder;
}
.container .title{
text-shadow: 1px 1px 1px lightgrey;
}
.container .title:after {
width: 50px;
height: 2px;
content: ' ';
position: absolute;
background-color: #015689;
margin: 20px 8px;
}
.container h2{
line-height: 40px;
margin: 2px 0;
font-weight: bolder;
}
.container a{

color: #170d51;
}
.container p{
font-size: 18px;
line-height: 30px;

}

.container button{
padding: 15px;
background-color: #4469f5;
border-radius: 10px;
border: none;
background-color: #00456e ;
font-size: 16px;
font-weight: bold;
margin-top: 5px;
}
.container button:hover{
box-shadow: 1px 1px 15px #015689;
transition: all 0.2S linear;

}
.container button a{
color: white;
}
hr{
/ display: none; /
}

Free Webinar

Fastrack Compliance: The Path to ZERO-Vulnerability
Compounding the problem are zero-day vulnerabilities like the MOVEit SQLi, Zimbra XSS, and 300+ such vulnerabilities that get discovered each month. Delays in fixing these vulnerabilities lead to compliance issues, these delay can be minimized with a unique feature on AppTrana that helps you to get “Zero vulnerability report” within 72 hours.

Register for Free

  Cacti Blind SQL Injection Flaw



An authenticated threat actor with any account that has the privilege to “Settings/Utilities” could exploit this vulnerability by sending a crafted HTTP GET request to the “/managers.php” endpoint , which could result in the SQLi payload being executed.



The parameter is vulnerable to this SQL injection attack has been identified as ‘selected_graph_array.’



Vulnerable Code (Source: GitHub) According to the reports shared with Cyber Security News, this vulnerability arises due to the function ‘form_actions’ in the file ‘managers.php.’ In addition to this, the ‘get_nfilter_request_var’ does not perform sanitization when deserializing the provided value. 



It was also stated that the ‘cacti_unserialize’ function uses the ‘allowed_classes’ argument to remove any PHP Object Injection vectors but does not perform any sanitization on the deserialized value.



Hence, the flow of this attack would start with the attacker sending a serialized array which has the SQLi payload deserialized to an in-memory array followed by joining it into a single string and concatenating it into a raw SQL query—this query, when executed in the database, results in exposing sensitive information.







Moreover, the impact of this vulnerability may vary based on the configuration of the Cacti database, which could even result in arbitrary file reading and writing.



Furthermore, this vulnerability can also be escalated to Remote code execution, as demonstrated in another vulnerability, CVE-202 3-49084 . 



Users of Cacti are recommended to upgrade to the patched ve rsion to prevent this vulnerability from getting exploited by threat actors.
The post Cacti Blind SQL Injection Flaw Enables Remote Code Execution appeared first on GBHackers on Security | #1 Globally Trusted Cyber Security News Platform .

Top News