SecurityContext

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

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/Cacti/cacti/security/advisories/GHSA-rwhh-xxm6-vcrvnvd2023-09-05

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/Cacti/cacti/security/advisories/GHSA-rwhh-xxm6-vcrvExploit, Vendor Advisory
https://lists.fedoraproject.org/archives/list/[email protected]/message/CFH3J2WVBKY4ZJNMARVOWJQK6PSLPHFH/Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/WZGB2UXJEUYWWA6IWVFQ3ZTP22FIHMGN/Mailing List
https://lists.fedoraproject.org/archives/list/[email protected]/message/WOQFYGLZBAWT4AWNMO7DU73QXWPXTCKH/
https://www.debian.org/security/2023/dsa-5550

Products

ProductAffectedPlatform boundSourcesUrl
cacti:cacti>= 1.2.0, < 1.2.25nonvd/v1/products/cacti/cacti
fedoraproject:fedora= 38, = 37nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
Cacti/cactisecurity_advisoryyes/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