5985 - Omi
💡 学习提示: 本文档介绍 5985-5986 - WinRM/OMI 的渗透测试方法,适合信息安全初学者和从业人员参考。
⚠️ 法律声明: 本文档仅供学习和授权测试使用。未经授权的系统测试可能违反法律法规。
⚠️ 法律声明: 本文档仅供学习和授权测试使用。未经授权的系统测试可能违反法律法规。
5985,5986 - 渗透测试 OMI
基本信息
OMI is presented as an open-source tool by Microsoft, designed for remote configuration management. It’s particularly relevant for Linux servers on Azure that utilize services such as:
- Azure Automation
- Azure Automatic Update
- Azure Operations Management Suite
- Azure Log Analytics
- Azure 配置 Management
- Azure Diagnostics
The process omiengine is initiated and listens on all interfaces as root when these services are activated.
默认 ports used are 5985 (http) and 5986 (https).
CVE-2021-38647 漏洞
As observed on September 16, Linux servers deployed in Azure with the mentioned services are susceptible due to a vulnerable version of OMI. This vulnerability lies in the OMI server’s handling of messages through the /wsman endpoint without requiring an 认证 header, incorrectly authorizing the client.
An attacker can exploit this by sending an “ExecuteShellCommand” SOAP payload without an 认证 header, compelling the server to execute commands with root privileges.
For a more information about this CVE check this.