CVE-2023-39360 Reflected Cross-site Scripting in graphs_new.php in Cacti

Medium 6.1 Published Updated

An authenticated user can inject malicious scripts via the returnto parameter in graphs_new.php, allowing data poisoning and potential session hijacking.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-39360?

CVE-2023-39360 is a medium-severity cross-site scripting vulnerability in Cacti Cacti, published on 5 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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. The vulnerability is found in `graphs_new.php`. Several validations are performed, but the `returnto` parameter is directly passed to `form_save_button`. In order to bypass this validation, returnto must contain `host.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.

Weakness: CWE-79

Which versions are affected by CVE-2023-39360?

It affects 2 products.

Products include Cacti Cacti, Fedoraproject Fedora.

How do I fix CVE-2023-39360?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-39360 being exploited?

There is no known exploitation of CVE-2023-39360 in the wild and no public exploit code.

All Cacti Cacti vulnerabilities

Sources

Also known as CLEANSTART-2024-WP19421, DEBIAN-CVE-2023-39360, GHSA-gx8c-xvjh-9qh4, UBUNTU-CVE-2023-39360.

Is CVE-2023-39360 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free