Yonyou KSOA SQL Injection Vulnerability in Worksadd.jsp
Vulnerability
A SQL injection vulnerability has been identified in Yonyou KSOA version 9.0. The issue resides in the '/worksheet/worksadd.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.
Impact
Exploitation of this vulnerability allows for SQL injection, with potential consequences including unauthorized database access, data leakage, data manipulation, and possibly gaining administrative control over the database server.
Reproduction
The vulnerability can be reproduced by sending a GET request to 'http://<target>:<port>/worksheet/worksadd.jsp' with the 'id' parameter set to a crafted value that exploits the SQL injection flaw. This can be done using a tool like sqlmap, targeting the Microsoft SQL Server database.
Remediation
It is recommended to use prepared statements for database queries to prevent SQL injection. Input validation should be implemented to ensure that the 'id' parameter only contains expected values, such as integers. Additionally, deploying a Web Application Firewall (WAF) can help block SQL injection attempts.
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.
