CVE-2025-13811 Overview
A SQL injection vulnerability has been identified in jsnjfz WebStack-Guns version 1.0, a web application framework. The vulnerability exists in the file src/main/java/com/jsnjfz/manage/core/common/constant/factory/PageFactory.java, where the sort argument is not properly sanitized before being used in database queries. This allows authenticated attackers to inject malicious SQL commands remotely, potentially compromising the confidentiality, integrity, and availability of the underlying database.
Critical Impact
Authenticated remote attackers can exploit this SQL injection vulnerability to extract sensitive data, modify database contents, or potentially gain further access to backend systems through database manipulation.
Affected Products
- jsnjfz WebStack-Guns version 1.0
- Applications built on WebStack-Guns 1.0 that utilize the PageFactory.java pagination functionality
Discovery Timeline
- December 1, 2025 - CVE-2025-13811 published to NVD
- December 4, 2025 - Last updated in NVD database
Technical Details for CVE-2025-13811
Vulnerability Analysis
This SQL injection vulnerability (CWE-89) stems from improper input validation in the PageFactory.java class within the WebStack-Guns framework. The vulnerability falls under the broader category of injection flaws (CWE-74), where user-supplied input is incorporated into SQL queries without adequate sanitization or parameterization.
The vulnerable code processes the sort parameter, which is typically used to order query results. When an attacker supplies a maliciously crafted value for this parameter, the application directly incorporates it into the SQL query, enabling arbitrary SQL command execution. The exploit has been publicly disclosed, increasing the risk of exploitation in the wild.
The vendor was contacted early about this disclosure but did not respond in any way, leaving no official patch available at this time.
Root Cause
The root cause is insufficient input validation and the use of string concatenation or interpolation when constructing SQL queries. The sort argument from user input is passed directly into the SQL ORDER BY clause without proper sanitization, parameterization, or allowlist validation. This violates secure coding practices that require all user input to be treated as untrusted and properly escaped or parameterized before inclusion in database queries.
Attack Vector
The attack can be executed remotely over the network by an authenticated user. The attacker manipulates the sort parameter in HTTP requests to the application, injecting SQL syntax that alters the intended query structure. Since the vulnerability exists in a pagination factory class, it likely affects multiple endpoints that implement sorting functionality throughout the application.
The exploitation involves crafting requests with SQL injection payloads in the sort parameter. Attackers can leverage various SQL injection techniques including UNION-based extraction, boolean-based blind injection, or time-based blind injection depending on the database configuration and error handling. For detailed technical information and proof-of-concept details, refer to the GitHub SQL Injection Report.
Detection Methods for CVE-2025-13811
Indicators of Compromise
- Unusual or malformed values in the sort parameter containing SQL keywords such as UNION, SELECT, DROP, INSERT, or --
- Database error messages in application logs indicating syntax errors or unexpected query behavior
- Anomalous database query patterns or execution times suggesting blind SQL injection attempts
- Unexpected data access patterns or unauthorized data retrieval from the database
Detection Strategies
- Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in the sort parameter
- Deploy application-layer intrusion detection that monitors for SQL syntax in pagination and sorting parameters
- Enable detailed database query logging to identify injection attempts and anomalous query structures
- Configure SIEM rules to correlate multiple failed SQL injection attempts from the same source
Monitoring Recommendations
- Monitor application logs for requests containing SQL metacharacters in sorting and pagination parameters
- Set up alerts for database error rates that may indicate exploitation attempts
- Track authentication patterns for accounts attempting to access pagination endpoints with unusual parameters
- Review database audit logs for unexpected queries or data access patterns
How to Mitigate CVE-2025-13811
Immediate Actions Required
- Restrict access to WebStack-Guns administrative interfaces to trusted networks only
- Implement input validation to allowlist acceptable values for the sort parameter (e.g., only allow known column names)
- Deploy a Web Application Firewall (WAF) with SQL injection protection rules
- Review and monitor logs for any signs of exploitation
- Consider disabling sorting functionality if it is not business-critical until a fix is implemented
Patch Information
No official patch has been released by the vendor. The vendor was contacted about this vulnerability but did not respond. Organizations using WebStack-Guns 1.0 should implement the workarounds described below and consider migrating to alternative frameworks with active security maintenance. Monitor the VulDB entry for updates on vendor response or community patches.
Workarounds
- Implement strict server-side validation for the sort parameter, allowing only predefined column names from an allowlist
- Use parameterized queries or prepared statements in any custom modifications to the PageFactory.java class
- Apply network-level access controls to limit who can reach the affected application endpoints
- Consider implementing a reverse proxy with SQL injection filtering capabilities in front of the application
# Example nginx configuration to block common SQL injection patterns
location / {
if ($args ~* "(union|select|insert|update|delete|drop|;|--)" ) {
return 403;
}
proxy_pass http://backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

