CVE-2024-35091

9.8 CRITICAL

📋 TL;DR

J2EEFAST v2.7.0 contains a SQL injection vulnerability in the findPage function within SysTenantMapper.xml. This allows attackers to execute arbitrary SQL commands on the database. All systems running the vulnerable version are affected.

💻 Affected Systems

Products:
  • J2EEFAST
Versions: v2.7.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only version 2.7.0 is confirmed affected. Other versions may be vulnerable if similar code exists.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or remote code execution on the database server.

🟠

Likely Case

Unauthorized data access, data exfiltration, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection is well-understood with many automated tools available. Exploitation requires access to the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://www.j2eefast.com/

Restart Required: No

Instructions:

1. Check vendor website for security updates. 2. Apply any available patches. 3. Test functionality after patching.

🔧 Temporary Workarounds

Input Validation

all

Implement strict input validation and parameterized queries for the findPage function.

WAF Rules

all

Deploy web application firewall rules to block SQL injection patterns.

🧯 If You Can't Patch

  • Restrict network access to the application to trusted IPs only.
  • Implement database user permissions with least privilege principles.

🔍 How to Verify

Check if Vulnerable:

Check application version in configuration files or admin interface. If version is 2.7.0, assume vulnerable.

Check Version:

Check application.properties or similar configuration files for version information.

Verify Fix Applied:

Test the findPage function with SQL injection payloads after applying fixes.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts via findPage endpoint

Network Indicators:

  • SQL keywords in HTTP POST parameters to findPage endpoint

SIEM Query:

SELECT * FROM web_logs WHERE url LIKE '%findPage%' AND (params LIKE '%SELECT%' OR params LIKE '%UNION%' OR params LIKE '%OR%')

🔗 References

📤 Share & Export