VYPR
Unrated severityNVD Advisory· Published Jan 16, 2020· Updated Aug 4, 2024

CVE-2020-7106

CVE-2020-7106

Description

Cacti 1.2.8 has stored XSS in data_sources.php, color_templates_item.php, graphs.php, graph_items.php, lib/api_automation.php, user_admin.php, and user_group_admin.php, as demonstrated by the description parameter in data_sources.php (a raw string from the database that is displayed by $header to trigger the XSS).

AI Insight

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

Affected products

9

Patches

Vulnerability mechanics

Root cause

"Missing output escaping on multiple pages allows stored XSS via user-supplied fields such as the description parameter."

Attack vector

An attacker navigates to Console -> Create -> New Device and embeds a script payload (e.g., `

Affected code

The vulnerability affects multiple Cacti pages including data_sources.php, color_templates_item.php, graphs.php, graph_items.php, lib/api_automation.php, user_admin.php, and user_group_admin.php [ref_id=1]. The description parameter in data_sources.php is a primary example: a raw string from the database is displayed by $header without proper escaping, triggering stored XSS [ref_id=1].

What the fix does

The advisory does not include a patch diff, but the root cause is a lack of output escaping on multiple pages that display user-supplied data from the database [ref_id=1]. The remediation would require applying proper HTML escaping (e.g., htmlspecialchars or equivalent) to fields such as the description parameter before they are rendered by $header in data_sources.php and similar locations across the other affected files [ref_id=1].

Preconditions

  • authAttacker must have access to create or edit a device (or other entity) on the Cacti console
  • inputThe application must store the attacker-supplied payload in the database without sanitization

Reproduction

Navigate to Console -> Create -> New Device. In the Description field, input the script payload `

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

References

11

News mentions

0

No linked articles in our index yet.