OMI Vulnerability Let Attackers Predict a Secret and Escalate to Root

· Original article ↗

Summary

Wiz researchers explain how CVE-2022-29149 let attackers predict OMI’s time-seeded secretString, forge privileged messages, and escalate to root. OMI versions before 1.6.9-1 are affected; Microsoft recommends updating.

Key points

  • CVE-2022-29149 affects OMI versions earlier than 1.6.9-1 and enables local privilege escalation.
  • OMI generates secretString using the current system time as the random-number seed; knowing when the process launched can allow the value to be predicted.
  • Researchers say the recovered secretString can be used to forge messages from OMI’s highly privileged process and bypass a previous patch, enabling root access.
  • OMI may be installed with Azure services on Linux VMs, sometimes without customers’ awareness; several listed Azure services do not support automatic updates and may remain vulnerable until updated.
  • Microsoft’s patched OMI version is 1.6.9-1. Customers can check installed versions with dpkg or rpm and update through the package manager.
  • Microsoft added the OMS, LAD, and DSC agents to Automatic Extension Upgrade; the article recommends enabling it or migrating to Azure Monitoring Agent, which does not rely on OMI.
  • Wiz reported detecting vulnerable workloads through its Threat Center on the day CVE-2022-29149 was announced.

Article Details

Attack Vectors
  • CVE-2022-29149 permits local privilege escalation in OMI; Wiz Research validated that it is exploitable.
  • The vulnerability arises from OMI's use of a system-time-seeded pseudo-random secretString. An attacker who can determine when the OMI process launched can recover the secret and forge messages that appear to originate from the highly privileged OMI process.
  • The recovered secretString can be used to bypass the patch for CVE-2021-38645 and elevate privileges to root.
Defensive Notes
  • Update OMI to version 1.6.9-1 or later.
  • Enable automatic updates for the OMS, LAD, and DSC agents, which bundle OMI, or migrate to Azure Monitoring Agent, which does not rely on OMI.
  • For services without auto-updates, update OMI manually using the package manager. Check for installed OMI with dpkg -l omi on Debian-based systems or rpm -qa omi on Red Hat-based systems.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles