Skip to content
OpenAdvisories
Medium · 6.1 CVE-2023-39366 EUVD-2023-43091

Stored Cross-site Scripting in data_sources.php through Device-Name in 'select' input in Cacti

Published Sep 5, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

Cacti is an open source operational monitoring and fault management framework. Affected versions are subject to a Stored Cross-Site-Scripting (XSS) Vulnerability 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 `data_sources.php` script displays the data source management information (e.g. data source path, polling configuration etc.) for different data visualizations of the _cacti_ app.
CENSUS found that an adversary that is able to configure a malicious Device name, can deploy a stored XSS attack against any user of the same (or broader) privileges. A user that possesses the _General Administration>Sites/Devices/Data_ permissions can configure the device names in _cacti_. This configuration occurs through `http://<HOST>/cacti/host.php`, while the rendered malicious payload is exhibited at `http://<HOST>/cacti/data_sources.php`. This vulnerability has been addressed in version 1.2.25. Users are advised to upgrade. Users unable to update should manually filter HTML output.

Affected products

VendorProductAffectedFixed
Cacti cacti < 1.2.25 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cacti 1.2.25+ds1-1 —
Debian 13 cacti 1.2.25+ds1-1 —
Debian 12 cacti 1.2.24+ds1-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS cacti No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS cacti No fix yet —
Ubuntu Pro 20.04 LTS cacti No fix yet —
Ubuntu Pro 18.04 LTS cacti No fix yet —
Ubuntu Pro 16.04 LTS cacti No fix yet —
Ubuntu Pro 14.04 LTS cacti No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 cacti +1 1.2.25-bp155.2.3.1 openSUSE-SU-2023:0275-1
SUSE Package Hub 15 SP4 cacti +1 1.2.25-bp155.2.3.1 openSUSE-SU-2023:0275-1
SUSE Package Hub 12 cacti +1 1.2.25-bp155.2.3.1 openSUSE-SU-2023:0275-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cacti 1.2.25-2.1 openSUSE-SU-2024:13203-1
openSUSE Leap 15.5 cacti +1 1.2.25-bp155.2.3.1 openSUSE-SU-2023:0275-1
openSUSE Leap 15.4 cacti +1 1.2.25-bp155.2.3.1 openSUSE-SU-2023:0275-1
ReleasePackageFixed inAdvisory
Alpine v3.24 cacti 1.2.25-r0 —
Alpine v3.23 cacti 1.2.25-r0 —
Alpine v3.22 cacti 1.2.25-r0 —
Alpine v3.21 cacti 1.2.25-r0 —
Alpine v3.20 cacti 1.2.25-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 cacti 1.2.25-r0 —
Alpine v3.18 cacti 1.2.26-r0 —

Advisories 3

References