Skip to content

CVE-2023-39513 Stored Cross-site Scripting on host.php verbose data-query debug view in Cacti

MediumCVSS 5.4 EPSS 0.85%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHPUbuntuDebian

Description

Cacti is an open source operational monitoring and fault management framework. Affected versions are subject to a Stored Cross-Site-Scripting (XSS) Vulnerability which allows an authenticated user to poison data stored in the cacti's database. These data will be viewed by administrative cacti accounts and execute JavaScript code in the victim's browser at view-time. The script under host.php is used to monitor and manage hosts in the cacti app, hence displays useful information such as data queries and verbose logs. CENSUS found that an adversary that is able to configure a data-query template with malicious code appended in the template path, in order to deploy a stored XSS attack against any user with the General Administration>Sites/Devices/Data privileges. A user that possesses the Template Editor>Data Queries permissions can configure the data query template path in cacti. Please note that such a user may be a low privileged user. This configuration occurs through http://<HOST>/cacti/data_queries.php by editing an existing or adding a new data query template. If a template is linked to a device then the formatted template path will be rendered in the device's management page, when a verbose data query is requested. This vulnerability has been addressed in version 1.2.25. Users are advised to upgrade. Users unable to update should manually filter HTML output.

Upgrade path

19 packages: 11 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/cacti(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cacti(Ubuntu 24.04) = 1.2.25+ds1-2; = 1.2.26+ds1-1; = 1.2.26+ds1-1ubuntu0.1; All versions No fix listed No fix yet
ubuntu/cacti(Ubuntu Pro 14.04) = 0.8.8b+dfsg-3; = 0.8.8b+dfsg-5; = 0.8.8b+dfsg-5ubuntu0.1; = 0.8.8b+dfsg-5ubuntu0.2 +3 more No fix listed No fix yet
ubuntu/cacti(Ubuntu Pro 16.04) = 0.8.8f+ds1-2; = 0.8.8f+ds1-3; = 0.8.8f+ds1-4; = 0.8.8f+ds1-4ubuntu1 +9 more No fix listed No fix yet
ubuntu/cacti(Ubuntu Pro 18.04) = 1.1.18+ds1-1; = 1.1.27+ds1-2; = 1.1.27+ds1-3; = 1.1.28+ds1-2 +7 more No fix listed No fix yet
ubuntu/cacti(Ubuntu Pro 20.04) = 1.2.4+ds1-2ubuntu3; = 1.2.9+ds1-1ubuntu1; = 1.2.9+ds1-1ubuntu2; = 1.2.10+ds1-1ubuntu1 +5 more No fix listed No fix yet
ubuntu/cacti(Ubuntu Pro 22.04) = 1.2.16+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1+esm1; = 1.2.19+ds1-2ubuntu1.1 +3 more No fix listed No fix yet
alpine/cacti(Alpine v3.18) < 1.2.26-r0 1.2.26-r0 Fixed
alpine/cacti(Alpine v3.19) < 1.2.25-r0 1.2.25-r0 Fixed
alpine/cacti(Alpine v3.20) < 1.2.25-r0 1.2.25-r0 Fixed
alpine/cacti(Alpine v3.21) < 1.2.25-r0 1.2.25-r0 Fixed
alpine/cacti(Alpine v3.22) < 1.2.25-r0 1.2.25-r0 Fixed
alpine/cacti(Alpine v3.23) < 1.2.25-r0 1.2.25-r0 Fixed
alpine/cacti(Alpine v3.24) < 1.2.25-r0 1.2.25-r0 Fixed
cacti < 1.2.25; = < 1.2.25 1.2.25 Fixed
debian/cacti(Debian 12) < 1.2.24+ds1-1+deb12u2; = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1 1.2.24+ds1-1+deb12u2 Fixed
debian/cacti(Debian 13) < 1.2.25+ds1-1 1.2.25+ds1-1 Fixed
debian/cacti(Debian 14) < 1.2.25+ds1-1 1.2.25+ds1-1 Fixed
fedoraproject fedora = 37; = 38 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/cacti(Debian:12) < 1.2.24+ds1-1+deb12u2 1.2.24+ds1-1+deb12u2
debian/cacti(Debian:12) = 1.2.24+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u1 No fix listed
debian/cacti(Debian:13) < 1.2.25+ds1-1 1.2.25+ds1-1
debian/cacti(Debian:14) < 1.2.25+ds1-1 1.2.25+ds1-1
cacti = < 1.2.25 No fix listed
ubuntu/cacti(Ubuntu:22.04) All versions No fix listed
alpine/cacti(Alpine:v3.18) < 1.2.26-r0 1.2.26-r0
alpine/cacti(Alpine:v3.19) < 1.2.25-r0 1.2.25-r0
alpine/cacti(Alpine:v3.20) < 1.2.25-r0 1.2.25-r0
alpine/cacti(Alpine:v3.21) < 1.2.25-r0 1.2.25-r0
alpine/cacti(Alpine:v3.22) < 1.2.25-r0 1.2.25-r0
alpine/cacti(Alpine:v3.23) < 1.2.25-r0 1.2.25-r0
alpine/cacti(Alpine:v3.24) < 1.2.25-r0 1.2.25-r0
ubuntu/cacti(Ubuntu:24.04) All versions No fix listed
cacti < 1.2.25 1.2.25
fedoraproject fedora = 37 No fix listed
fedoraproject fedora = 38 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) All versions No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-3 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-5 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-5ubuntu0.1 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-5ubuntu0.2 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-5ubuntu0.2+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:14.04) = 0.8.8b+dfsg-5ubuntu0.2+esm2 No fix listed
Show 43 more
ProductAffected versionsFixed in
ubuntu/cacti(Ubuntu:Pro:16.04) All versions No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-2 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-3 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu1 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu2 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu3 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4.16.04 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4.16.04.1 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4.16.04.2 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4.16.04.2+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:16.04) = 0.8.8f+ds1-4ubuntu4.16.04.2+esm2 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) All versions No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.18+ds1-1 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.27+ds1-2 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.27+ds1-3 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.28+ds1-2 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.35+ds1-1 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.36+ds1-1 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.38+ds1-1 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.38+ds1-1ubuntu0.1~esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.38+ds1-1ubuntu0.1~esm3 No fix listed
ubuntu/cacti(Ubuntu:Pro:18.04) = 1.1.38+ds1-1ubuntu0.1~esm4 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) All versions No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.4+ds1-2ubuntu3 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.9+ds1-1ubuntu1 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.9+ds1-1ubuntu2 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.10+ds1-1ubuntu1 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.10+ds1-1ubuntu1+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.10+ds1-1ubuntu1.1 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.10+ds1-1ubuntu1.1+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:20.04) = 1.2.10+ds1-1ubuntu1.1+esm2 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) All versions No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.16+ds1-2ubuntu1 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.19+ds1-2ubuntu1 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.19+ds1-2ubuntu1+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.19+ds1-2ubuntu1.1 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.19+ds1-2ubuntu1.1+esm1 No fix listed
ubuntu/cacti(Ubuntu:Pro:22.04) = 1.2.19+ds1-2ubuntu1.1+esm2 No fix listed
ubuntu/cacti(Ubuntu:24.04) = 1.2.25+ds1-2 No fix listed
ubuntu/cacti(Ubuntu:24.04) = 1.2.26+ds1-1 No fix listed
ubuntu/cacti(Ubuntu:24.04) = 1.2.26+ds1-1ubuntu0.1 No fix listed

References