JEEWMS SQL Injection Vulnerability in CgExportExcelController
Vulnerability
A SQL injection vulnerability has been identified in JEEWMS version 20250820, specifically within the exportXls function of the CgExportExcelController.java file. This vulnerability arises from inadequate validation of user input, allowing attackers to inject malicious SQL queries through the 'configId' parameter. Exploitation of this vulnerability could lead to unauthorized database access, data manipulation, and leakage of sensitive information.
Impact
Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could result in unauthorized access to the database, modification or deletion of data, and extraction of sensitive information.
Reproduction
The vulnerability can be reproduced by sending a GET request to the 'cgExportExcelController.do' endpoint with the 'exportXls' parameter. The 'configId' parameter should be crafted to include a SQL injection payload, such as a conditional statement that exploits the application's SQL query handling. This crafted request can be sent using tools like SQLMap, which automates the process of finding and exploiting SQL injection vulnerabilities.
Remediation
To address this vulnerability, it is recommended to implement prepared statements and parameter binding to separate SQL code from user input, conduct thorough input validation and filtering, and minimize database user permissions to the least required for operations.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
