CVE-2021-3151 in i-doitinfo

Summary

by MITRE • 02/27/2021

i-doit before 1.16.0 is affected by Stored Cross-Site Scripting (XSS) issues that could allow remote authenticated attackers to inject arbitrary web script or HTML via C__MONITORING__CONFIG__TITLE, SM2__C__MONITORING__CONFIG__TITLE, C__MONITORING__CONFIG__PATH, SM2__C__MONITORING__CONFIG__PATH, C__MONITORING__CONFIG__ADDRESS, or SM2__C__MONITORING__CONFIG__ADDRESS.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 03/14/2021

The vulnerability CVE-2021-3151 affects i-doit versions prior to 1.16.0 and represents a stored cross-site scripting vulnerability that poses significant security risks to organizations using this IT infrastructure management platform. This issue specifically targets configuration fields within the monitoring module where user input is not properly sanitized or validated before being stored and subsequently rendered in web pages. The affected parameters include C__MONITORING__CONFIG__TITLE, SM2__C__MONITORING__CONFIG__TITLE, C__MONITORING__CONFIG__PATH, SM2__C__MONITORING__CONFIG__PATH, C__MONITORING__CONFIG__ADDRESS, and SM2__C__MONITORING__CONFIG__ADDRESS, which are all part of the monitoring configuration interface. The vulnerability allows authenticated attackers to inject malicious scripts that can persist in the database and execute whenever the affected configuration data is displayed to other users.

The technical flaw stems from inadequate input validation and output encoding mechanisms within the i-doit application's monitoring configuration handling code. When administrators or authorized users enter data into these specific configuration fields, the application fails to properly sanitize the input before storing it in the database. This lack of proper sanitization creates an environment where malicious scripts can be stored alongside legitimate configuration data. The vulnerability is classified as a stored XSS issue under CWE-79, which specifically addresses Cross-Site Scripting flaws where malicious code is stored on the server and then executed when other users access the affected content. The attack vector requires authentication since only authenticated users can modify the monitoring configuration, but this does not mitigate the risk as compromised accounts can lead to widespread exploitation.

The operational impact of CVE-2021-3151 extends beyond simple script execution as it provides attackers with persistent access to the application environment. Once a malicious script is injected, it can be executed in the context of other authenticated users' browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of users, or redirect them to malicious sites. This vulnerability is particularly dangerous in enterprise environments where i-doit is used for critical infrastructure management, as it could enable attackers to gain unauthorized access to sensitive monitoring data and potentially compromise the entire IT infrastructure management system. The persistence of the vulnerability means that even after the initial injection, the malicious code continues to execute whenever affected pages are loaded, making it difficult to detect and remediate without proper database cleanup.

Organizations should immediately upgrade to i-doit version 1.16.0 or later to address this vulnerability, as this release includes proper input sanitization and output encoding mechanisms that prevent malicious scripts from being stored or executed. System administrators should also implement additional monitoring of the affected configuration fields to detect any unauthorized modifications, though this approach is reactive rather than preventive. The mitigation strategy should include comprehensive input validation at multiple levels including client-side and server-side validation, proper output encoding when rendering user-supplied data, and regular security assessments of the application's input handling mechanisms. This vulnerability aligns with ATT&CK technique T1059.005 for Command and Scripting Interpreter: Visual Basic, as attackers can leverage the XSS vulnerability to execute malicious scripts within the browser context of authenticated users. Additionally, the vulnerability demonstrates characteristics of T1566.002 for Initial Access: Spearphishing Attachment, as attackers may attempt to exploit this vulnerability through social engineering campaigns targeting system administrators who maintain monitoring configurations.

Reservation

01/14/2021

Disclosure

02/27/2021

Moderation

accepted

CPE

ready

EPSS

0.01221

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!