ZeroHour

CVE-2024-43362

PoC large

Stored XSS in Cacti external links via unsanitized fileurl parameter

CVSS 3.1
5.4 medium
EPSS
39%p98
Published
()
Modified
AI analysis

CVE-2024-43362 is a stored cross-site scripting (XSS) flaw in Cacti, an open-source performance and fault management framework, caused by insufficient sanitization of the `fileurl` parameter when external links are saved in `links.php`. An authenticated user with permission to create external links can submit a crafted `fileurl` in an HTTP POST; the stored value is later embedded in HTML that is passed to the `print` function in `link.php` and `index.php`, so attacker-controlled script executes whenever other users view those pages. Successful exploitation lets the attacker run arbitrary JavaScript in victims' browsers within the Cacti origin, enabling session hijacking or actions performed with the victim's privileges; planting the payload requires low privileges and viewing the malicious link requires user interaction. Any Cacti deployment running versions prior to 1.2.28 is affected, with the issue fixed in 1.2.28. No in-the-wild exploitation is confirmed so far; a public PoC accompanies the GitHub advisory, and an EPSS of 36.5% (98th percentile) indicates an elevated likelihood of near-term exploitation.

What to do: Upgrade to Cacti 1.2.28 or later; the advisory notes there are no known workarounds. In the interim, restrict permission to create external links to trusted users and audit existing external links for unexpected HTML/scripts in the fileurl field, since injected payloads persist until removed. Monitor the estate closely, as the high EPSS score suggests exploitation attempts are likely within the next 30 days.

Affected
CactiAll versions prior to 1.2.28 (fixed in 1.2.28)
Estimated exposure
largetens of thousands of systems (approx. 20,000-40,000 internet-exposed Cacti servers per public scans), plus unknown numbers of internal-only deployments — Public internet scans (e.g., Shodan) list on the order of tens of thousands of exposed Cacti instances, many of which ran 1.2.x versions predating the 1.2.28 fix at disclosure time, while counts of internal enterprise deployments are…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Cacti is an open source performance and fault management framework. The `fileurl` parameter is not properly sanitized when saving external links in `links.php` . Morever, the said fileurl is placed in some html code which is passed to the `print` function in `link.php` and `index.php`, finally leading to stored XSS. Users with the privilege to create external links can manipulate the `fileurl` parameter in the http post request while creating external links to perform stored XSS attacks. The vulnerability known as XSS (Cross-Site Scripting) occurs when an application allows untrusted user input to be displayed on a web page without proper validation or escaping. This issue has been addressed in release version 1.2.28. All users are advised to upgrade. There are no known workarounds for this issue.

Vendors
cacti
Products
cacti
Weakness
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

In the news

No ingested article mentions this CVE yet.