Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
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
wp2shell — RCE non autenticata nel core di WordPress (CVE-2026-63030 + CVE-2026-60137) | Kitploit
Strumenti/GitHubGitHub/iqbalx7/wp2shell
Password CrackingEscalation di PrivilegiGenerazione di PayloadExploitSfruttamento di Applicazioni WebRed TeamingSicurezza delle API
GitHubiqbalx7/wp2shell

wp2shell

RCE non autenticata nel core di WordPress (CVE-2026-63030 + CVE-2026-60137)

Vedi Repository
61 mese 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

wp2shell

Sfrutta la route confusion dell'API REST di WordPress (CVE-2026-63030) + l'SQL injection (CVE-2026-60137) nell'endpoint batch per ottenere l'esecuzione remota di codice.

Vulnerabilità

Route Confusion (CVE-2026-63030)

L'endpoint batch (/batch/v1) dell'API REST di WordPress non isola correttamente il routing delle richieste. Annidando richieste batch una dentro l'altra, un attaccante può effettuare richieste interne che bypassano i normali controlli dei permessi di WordPress. L'indicatore chiave è il pattern di errore parse_path_failed + block_cannot_read nella risposta: questo conferma che la route confusion è sfruttabile.

SQL Injection (CVE-2026-60137)

Quando una richiesta viene instradata erroneamente tramite l'endpoint batch, il parametro author_exclude in GET /wp/v2/posts non viene sanificato correttamente. Ciò consente l'SQL injection tramite query impilate (stacked queries) e dichiarazioni UNION, il tutto senza autenticazione.

Come funziona l'exploit

root@kitploit:~
Phase 1: Probe
  ─────────────
  Check batch endpoint reachable (HTTP 207)
  Verify route confusion via marker requests
  Confirm SQL injection via timing/oracle

Phase 2: UNION → RCE (fast path)
  ─────────────────────────────
  If UNION injection works:
    1. Detect table prefix (blind or brute-force common ones)
    2. CREATE ADMIN USER via stacked UNION INSERT queries
       - Bcrypt hash generated via PHP on attacker machine
       - Insert row into {prefix}_users + {prefix}_usermeta
       - New user gets administrator capabilities
    3. Login + Deploy webshell as WordPress plugin
    4. Execute commands via ?t=TOKEN&c=id

Phase 3: Blind → Hash (fallback path)
  ─────────────────────────────────
  If UNION is blocked but blind SQLi works:
    1. Extract MySQL version, user, database name
    2. Extract table prefix from information_schema
    3. Extract admin hash from {prefix}_users WHERE id=1
    4. Crack offline: hashcat -m 3200 hash.txt wordlist.txt
    5. Use --user / --pass --cmd id with cracked password

Phase 4: Credential login
  ──────────────────────
  If --user/--pass provided:
    1. Login via wp-login.php or REST API Basic Auth
    2. Upload webshell as plugin
    3. Execute commands

Utilizzo

root@kitploit:~
# Auto mode — check, UNION, create admin, deploy webshell
python3 wp2shell.py https://target.com

# With known credentials (e.g., after cracking hash)
python3 wp2shell.py https://target.com --user admin --pass P@ssw0rd --cmd id

# UNION only (skip blind fallback)
python3 wp2shell.py https://target.com --union-only

# Blind extraction only (skip UNION attempt)
python3 wp2shell.py https://target.com --blind-only

# Debug via proxy
python3 wp2shell.py https://target.com --proxy http://127.0.0.1:8080

# Custom SLEEP duration for time-based blind (default 0.01s)
python3 wp2shell.py https://target.com --sleep 0.5

Opzioni

Requisiti

  • Python 3.8+
  • PHP CLI (per la generazione dell'hash bcrypt — opzionale, ripiega su quello predefinito)
  • Target: WordPress con API REST abilitata e endpoint batch non patchato

Dichiarazione di non responsabilità

Questo strumento è destinato esclusivamente a test di sicurezza autorizzati. Devi avere il permesso esplicito del proprietario del target prima di utilizzarlo. L'accesso non autorizzato a sistemi informatici è illegale.

Scarica lo strumento
FlagDescrizione
--proxyProxy HTTP (es. Burp Suite)
--userNome utente admin per il login
--passPassword admin
--cmdComando da eseguire sul target
--union-onlySalta l'estrazione blind
--blind-onlySalta il tentativo UNION
--sleepSecondi di SLEEP per il blind basato sul tempo