Huija BicycleSharingServer SQL Injection Vulnerability in AdminController

Vulnerability

A critical SQL injection vulnerability has been identified in Huija BicycleSharingServer versions prior to 7b8a3ba48ad618604abd4797d2e7cf3b5ac7625a. The issue arises in the 'searchAdminMessageShow' function of 'AdminController.java', where the 'Title' parameter is not properly sanitized, allowing for malicious SQL code to be injected. This vulnerability can be exploited remotely, and a public proof-of-concept exploit is available.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a GET request to the 'admin-admin-searchmessage-show' endpoint with a crafted 'title' parameter that includes SQL injection payloads. The injection point is within the 'AdminMessageDao.selectAdminMessageByTitleLike' method, which is called by 'AdminServiceImpl.getAdminMessageByTitleLike'. The injected SQL payload can be used to exploit the application, as demonstrated by the available proof-of-concept exploit.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
6.6
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.