GBHackers

Webmin Stored XSS Vulnerability Lets Attackers Exploit Root Users


A newly disclosed stored cross-site scripting (XSS) vulnerability in Webmin has raised significant security concerns, as it allows attackers with limited privileges to target and potentially compromise root users.

This vulnerability, tracked as CVE-2026-22678, affects Webmin versions before 2.641 and resides in the System and Server Status module, a commonly used component for monitoring system performance and managing alerts.

Webmin Stored XSS Vulnerability

According to the official Webmin security advisory published on April 25, 2024, the vulnerability arises from improper sanitization of user-supplied input in notification email templates.

Specifically, an authenticated but untrusted Webmin user with permissions to create or modify these templates can inject malicious JavaScript payloads. When a privileged user, including root, views the altered template, the embedded script executes in their browser context, leading to a stored XSS attack.

This type of vulnerability is particularly dangerous in administrative interfaces such as Webmin, which is widely used to manage Unix-based systems.

Since the malicious payload is persistently stored on the server, it does not require repeated user interaction or external delivery mechanisms once planted. Exploitation occurs whenever a privileged user accesses the affected module, making detection and mitigation more challenging.

Successful exploitation of CVE-2026-22678 could enable attackers to perform a range of malicious actions, including session hijacking, credential theft, and unauthorized administrative operations.

Because the attack runs in the context of a root user session, it effectively escalates the attacker’s privileges, potentially granting full control over the systems managed by Webmin. In real-world scenarios, this could lead to system compromise, data exfiltration, or further lateral movement within a network.

Security researcher Wade Sparks has been credited with discovering and responsibly reporting the issue. The Webmin development team has acknowledged the vulnerability and released a fix in version 2.641.

Users are strongly advised to upgrade immediately to mitigate the risk. In addition to applying the patch, administrators should review user permissions within Webmin to ensure that only trusted users can access or modify notification templates and other sensitive configurations.

As a precautionary measure, organizations should audit existing templates for any suspicious or unauthorized scripts, especially if they are running affected versions. Implementing web application firewalls (WAFs) and enforcing strict input validation policies can provide additional layers of defense against similar injection attacks.

This incident highlights the ongoing risk posed by stored XSS vulnerabilities in administrative tools. It reinforces the importance of secure coding practices, particularly in components that handle user-generated content.

As threat actors increasingly target management interfaces, maintaining up-to-date software and minimizing unnecessary user privileges remain critical strategies for reducing the attack surface.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.



Source link