PT-2023-4941 · Cacti+1 · Cacti+1

Vissamoutafis

·

Published

2023-09-05

·

Updated

2025-01-24

·

CVE-2023-39514

CVSS v2.0

8.5

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:N
Name of the Vulnerable Software and Affected Versions Cacti versions prior to 1.2.25
Description The issue is a Stored Cross-Site-Scripting (XSS) vulnerability that allows an authenticated user to poison data stored in the Cacti database. This data will be viewed by administrative Cacti accounts and execute JavaScript code in the victim's browser at view-time. The script under graphs.php displays graph details such as data-source paths, data template information, and graph related fields. An adversary can deploy a stored XSS attack against any user with General Administration>Graphs privileges by configuring either a data-source template with malicious code appended in the data-source name or a device with a malicious payload injected in the device name. This configuration occurs through the http://<HOST>/cacti/data templates.php endpoint by editing an existing or adding a new data template. A user with Template Editor>Data Templates permissions can configure the data-source name, and a user with General Administration>Sites/Devices/Data permissions can configure the device name.
Recommendations To resolve the issue, upgrade to version 1.2.25 or later. For versions prior to 1.2.25, add manual HTML escaping as a temporary workaround. As a mitigation measure, consider restricting access to the graphs.php script and the http://<HOST>/cacti/data templates.php endpoint to minimize the risk of exploitation. Additionally, limit the permissions of users with Template Editor>Data Templates and General Administration>Sites/Devices/Data permissions to reduce the attack surface.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2023-7619
ALT-PU-2023-7621
ALT-PU-2024-7120
ALT-PU-2025-1813
BDU:2023-05454
CVE-2023-39514
DSA-5550-1
GHSA-6HRC-2CFC-8HM7
OPENSUSE-SU-2023:0275-1
OPENSUSE-SU-2024:13203-1

Affected Products

Alt Linux
Cacti