EyouCMS SQL Injection Vulnerability in Sort Parameter

Vulnerability

A SQL injection vulnerability has been identified in EyouCMS versions through 1.7.9. The issue arises in the 'GetSortData' function within 'application/common.php', where the 'sort_asc' parameter is improperly validated before being appended to the SQL 'ORDER BY' clause. This flaw allows remote, unauthenticated attackers to manipulate the sorting parameter and execute arbitrary SQL commands, potentially leading to database information disclosure, including admin credentials.

Impact

Exploitation of this vulnerability allows for arbitrary SQL execution, with the potential to extract any database information, such as admin usernames and password hashes. This could be combined with offline hash cracking to gain full access to the server.

Reproduction

To reproduce this vulnerability, send a GET request to the frontend article list page with the 'sort_asc' parameter set to a crafted value that includes SQL injection payloads. If the server response is delayed, the injection point is confirmed. This vulnerability can also be exploited using 'sqlmap' to automate the injection and extraction of database information, including admin credentials.

Remediation

A pull request is available that adds whitelist validation for the 'sort_asc' parameter to prevent SQL injection. This pull request can be found in the EyouCMS repository on Gitee.

Added: Apr 29, 2026, 4:21 PM
Updated: Apr 29, 2026, 4:21 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
2.5
exploitability
9.7
remediation
0.0
relevance
7.0
threat
6.4
urgency
2.9
incentive
8.3

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