CVE-2023-39366: Cacti - Stored Cross-Site Scripting
- Cve: CVE-2023-39366
- Name: Cacti - Stored Cross-Site Scripting
- 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.
- Impact: Authenticated users can inject and execute malicious JavaScript in other users' browsers, potentially leading to session hijacking or data theft.
- Remediation: Upgrade to version 1.2.25 or later. If unable to update, manually filter HTML output to prevent script execution.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs to be authenticated with device configuration permissions
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00889
- Epss percentile: 0.60246
- Assignee: [email protected]
- Published at: 2023-09-05T21:15:46Z
- Age in days: 1176
- Modified at: 2026-06-17T06:12:09Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-39366
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Cacti/cacti/security/advisories/GHSA-rwhh-xxm6-vcrv | nvd | 2023-09-05 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cacti:cacti | >= 1.2.0, < 1.2.25 | no | nvd | /v1/products/cacti/cacti |
| fedoraproject:fedora | = 38, = 37 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Cacti/cacti | security_advisory | yes | /v1/repositories/Cacti/cacti |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-09-05
- Remote: yes
- Authentication required: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports