CVE-2024-25641
Cacti RCE vulnerability when importing packages
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, an arbitrary file write vulnerability, exploitable through the "Package Import" feature, allows authenticated users having the "Import Templates" permission to execute arbitrary PHP code on the web server. The vulnerability is located within the `import_package()` function defined into the `/lib/import.php` script. The function blindly trusts the filename and file content provided within the XML data, and writes such files into the Cacti base path (or even outside, since path traversal sequences are not filtered). This can be exploited to write or overwrite arbitrary files on the web server, leading to execution of arbitrary PHP code or other security impacts. Version 1.2.27 contains a patch for this issue.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Produtos afetados
Cacti · cactiPoCs públicas encontradas — 7
githubgithub.com/leo-mitch/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26★ 10githubgithub.com/5ma1l/CVE-2024-25641★ 8githubgithub.com/StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26★ 7githubgithub.com/Safarchand/CVE-2024-25641★ 2githubgithub.com/regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26★ 1githubgithub.com/GabrielCF10/CVE-2024-25641---Cacti★ 0exploitdbwww.exploit-db.com/exploits/52225não verificado⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.
Quer saber se a sua infraestrutura está exposta a isto?
Falar com a TrueHacking →Referências
http://seclists.org/fulldisclosure/2024/May/6https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88https://lists.debian.org/debian-lts-announce/2024/09/msg00027.htmlhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/