CVE-2025-13811

6.3 MEDIUM

📋 TL;DR

This CVE describes a SQL injection vulnerability in jsnjfz WebStack-Guns 1.0 that allows remote attackers to execute arbitrary SQL commands by manipulating the 'sort' parameter in PageFactory.java. The vulnerability affects all deployments of WebStack-Guns 1.0, and exploitation could lead to data theft, modification, or deletion.

💻 Affected Systems

Products:
  • jsnjfz WebStack-Guns
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All deployments of WebStack-Guns 1.0 are vulnerable. The vulnerability exists in the default configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise allowing data exfiltration, modification, or deletion, potentially leading to full system takeover if database privileges permit.

🟠

Likely Case

Unauthorized data access and potential data manipulation through SQL injection, compromising sensitive information stored in the database.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place, though the vulnerability would still exist.

🌐 Internet-Facing: HIGH - The vulnerability can be exploited remotely without authentication, making internet-facing instances particularly vulnerable.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but have reduced attack surface compared to internet-facing deployments.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Proof of concept is publicly available, making exploitation straightforward for attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider implementing workarounds or migrating to alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation for the 'sort' parameter to only allow expected values.

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests.

🧯 If You Can't Patch

  • Isolate the vulnerable system from the internet and restrict network access to only necessary connections.
  • Implement database-level controls such as least privilege access and regular monitoring of database queries.

🔍 How to Verify

Check if Vulnerable:

Check if running WebStack-Guns version 1.0. Test by attempting SQL injection via the 'sort' parameter as described in the public PoC.

Check Version:

Check application configuration files or deployment documentation for version information.

Verify Fix Applied:

Verify that SQL injection attempts via the 'sort' parameter are properly blocked or sanitized.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed login attempts following SQL injection patterns
  • Unexpected database errors

Network Indicators:

  • HTTP requests with SQL injection payloads in 'sort' parameter
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND (url_query="*sort=*" AND (url_query="*' OR *" OR url_query="*;--*" OR url_query="*UNION*"))

🔗 References

📤 Share & Export