VYPR
Unrated severityOSV Advisory· Published Jan 16, 2019· Updated Aug 5, 2024

CVE-2018-20723

CVE-2018-20723

Description

A cross-site scripting (XSS) vulnerability exists in color_templates.php in Cacti before 1.2.0 due to lack of escaping of unintended characters in the Name field for a Color.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

9

Patches

Vulnerability mechanics

Root cause

"Missing HTML escaping of the Name field value before output in color_templates.php allows stored XSS."

Attack vector

An attacker can inject arbitrary JavaScript by entering a payload such as `

Affected code

The vulnerability exists in `color_templates.php` in the Color Template edit page. The Name field value is printed without escaping before being displayed, as reported in the issue [ref_id=1].

What the fix does

The commit [ref_id=2] addresses the issue by applying `html_escape()` to user-supplied values before output. Specifically, the patch changes `$name` to `html_escape($name)` in the affected cell rendering, ensuring that any HTML or JavaScript in the Name field is safely encoded rather than executed by the browser.

Preconditions

  • networkAttacker must have access to the Color Template edit page (color_templates.php?action=template_edit)
  • inputAttacker must be able to supply a value for the Name field

Reproduction

1. Navigate to `http://localhost:4040/cacti/color_templates.php?action=template_edit`. 2. Enter `

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.