Cloudanix VulnDB

CVE-2022-38247

Medium · 4.8

CVSS

4.8

EPSS

2.1%

Published

Sep 7, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in the administrative settings area lets attackers slip in hidden code that could run when another admin views the page, potentially exposing internal monitoring data or accounts.

Exploitation
Requires User Interaction
Attacker needs
High Privilege
Complexity
Moderate
Impact
Data Tampering
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits injection of arbitrary JavaScript into the System Settings page rendered for administrative users, enabling execution of attacker-controlled scripts in the context of other users' sessions.

Why it matters to the business

Successful exploitation can lead to unauthorized access to administrative functions, exposure of sensitive monitoring data, and potential lateral movement within the organization's infrastructure, increasing operational risk and compliance exposure.

How an attack unfolds

An attacker with administrative access crafts malicious input containing script tags or event handlers, saves it via the System Settings page, and waits for another administrator to view the page, triggering script execution that can hijack the session or exfiltrate credentials.

How to fix it

Upgrade Nagios XI to a version that sanitizes or escapes user-supplied input on the System Settings page; apply vendor-supplied patches or configuration hardening to disable unnecessary HTML rendering in administrative interfaces.

How to confirm the fix worked

Review the System Settings page source after applying updates to confirm absence of unsanitized input rendering; conduct authenticated penetration testing focused on input fields under the Admin panel.

Typical attack path

  1. Obtain administrative credentials or access to the Nagios XI Admin panel
  2. Navigate to System Settings and inject XSS payload into configurable fields
  3. Persist the payload by saving the settings
  4. Induce a second administrator to load the affected page
  5. Execute session hijacking, cookie theft, or further privilege escalation via the running script

How to detect it

Inspect web server and application logs for unexpected script tags or event handlers submitted to System Settings endpoints; correlate with admin session activity and look for outbound requests or DOM modifications originating from the settings page.

  • POST requests to /admin/systemsettings containing script, onerror, or onload attributes
  • Unusual JavaScript execution traces in browser developer console when loading System Settings
  • Log entries showing HTML entities or script blocks persisted in configuration files under /usr/local/nagiosxi

What your security team should do

  • Prioritize patching or upgrading Nagios XI instances to eliminate the XSS vector
  • Implement web application firewall rules to block common XSS patterns targeting administrative endpoints
  • Enforce least-privilege access and monitor admin session activity for anomalous behavior
  • Schedule regular code reviews and input sanitization audits for all administrative interfaces

The record

Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via the System Settings page under the Admin panel.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:16.04:LTS icinga 0 No fix
Ubuntu:16.04:LTS nagios3 0 No fix
Ubuntu:18.04:LTS icinga 0 No fix
Ubuntu:18.04:LTS nagios3 0 No fix
Ubuntu:20.04:LTS nagios4 0 No fix
Ubuntu:22.04:LTS nagios4 0 No fix
Ubuntu:24.04:LTS nagios4 0 No fix
Ubuntu:24.10 nagios4 0 No fix
Ubuntu:25.04 nagios4 0 No fix
Ubuntu:25.10 nagios4 0 No fix
Ubuntu:Pro:16.04:LTS icinga 0 No fix
Ubuntu:Pro:16.04:LTS nagios3 0 No fix
Ubuntu:Pro:18.04:LTS icinga 0 No fix
Ubuntu:Pro:18.04:LTS nagios3 0 No fix
Ubuntu:Pro:20.04:LTS nagios4 0 No fix

Related vulnerabilities