Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CVE-2021-38647 — CVE-2021-38647 - POC para explotar RCE no autenticado #OMIGOD | Kitploit
Herramientas/GitHubGitHub/alteredsecurity/cve-2021-38647
Análisis de VulnerabilidadesExplotaciónPruebas de PenetraciónSeguridad en la NubeAprendizaje y EducaciónHerramienta de Acceso Remoto
GitHubalteredsecurity/cve-2021-38647

CVE-2021-38647

CVE-2021-38647 - POC para explotar RCE no autenticado #OMIGOD

Ver Repositorio
6823hace 4 añosRevisado por Kitploit

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir
Sitio web

CVE-2021-38647

CVE-2021-38647 - POC para explotar RCE no autenticado #OMIGOD en máquinas virtuales UNIX/Linux de Azure!

Detalles

En Microsoft Azure, la aplicación OMI se instala automáticamente cuando se utilizan servicios como Azure Automation Accounts, Update Management, Log Analytics, Configuration Management, etc., para máquinas virtuales UNIX/Linux. La aplicación OMI también expone el servicio a través del puerto 5986 si se utiliza el servicio Configuration Management para gestionar la máquina de forma remota.

Cualquier persona con acceso de red al endpoint vulnerable puede enviar una solicitud que aproveche el proveedor SCXcore sin el encabezado de Authorization y ejecutar comandos del sistema operativo en la máquina objetivo con privilegios de root!

Esta vulnerabilidad ya está corregida, pero siempre vale la pena comprobarla en máquinas virtuales Linux en 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==

Desplegar Entorno de Prueba

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

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

Detección y Mitigaciones

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

Para mitigar la vulnerabilidad, debemos actualizar el agente OMI a la versión 1.6.8.1 o superior.

Enlaces de Referencia

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édito

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

Aviso Legal

Este proyecto está destinado únicamente a fines educativos. El creador no se hace responsable del mal uso de esta herramienta.

Descargar herramienta