Yonyou KSOA SQL Injection Vulnerability in Work Modification JSP File
Vulnerability
A SQL injection vulnerability has been identified in Yonyou KSOA version 9.0. The issue resides in the '/worksheet/work_mod.jsp' file, where the application improperly handles the 'id' parameter in HTTP GET requests. This lack of validation allows remote, unauthenticated attackers to inject malicious SQL commands, potentially leading to unauthorized database access, data manipulation, or exploitation of the database server. The vulnerability affects environments using Microsoft SQL Server, as indicated by the nature of the SQL injection payload.
Impact
Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could result in unauthorized access to the database, leakage of sensitive information, tampering with data, or even gaining administrative control over the database server.
Reproduction
The vulnerability can be reproduced by sending a GET request to 'http://<target>:<port>/worksheet/work_mod.jsp' with the 'id' parameter set to a crafted value that exploits the SQL injection flaw. The injection can be verified by using a payload that, for example, delays the response time, indicating successful exploitation.
Remediation
It is recommended to use prepared statements for database queries to prevent SQL injection. Additionally, input validation should be implemented to ensure that the 'id' parameter only contains expected values, such as integers. Deploying a Web Application Firewall (WAF) to block common SQL injection patterns and disabling detailed database error messages on the frontend can also help mitigate this vulnerability.
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.
