Skip to content
Crypto Advisory Advanced CVE-2021-24087

Azure IoT CLI extension Elevation of Privilege Vulnerability (CVE-2021-24087)

The Azure CLI and the Azure IoT CLI extension generated new symmetric encryption keys in a way that made their randomness predictable. An attacker could derive those keys and use them to access a user's IoT hub.

Cristian Pop Follow

Originally disclosed on Microsoft

High 7.0 View original

FAQ

What can an attacker do with this vulnerability? An elevation of privilege vulnerability exists in the way Azure CLI and Azure IoT CLI extension generates new symmetric keys for encryption, allowing an attacker to predict the randomness of the key. An attacker could derive the keys from the way they are generated and use them to access a user's IoT hub. How do I know if I need to install the update? This update addresses the vulnerability by randomizing the key generation within Azure IoT CLI extension. https://github.com/Azure/azure-iot-cli-extension/pull/279/files https://docs.microsoft.com/en-us/cli/azure/release-notes-azure-cli?tabs=azure-cli#december-29-2020 Which versions are affected? IoT extension versions affected are 0.10.2 – 0.10.6 All versions before 2.17.0 in Azure CLI are affected

Azure IoT

Azure IoT

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Cristian Pop of Azure IoT. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the key generation used a predictable source of randomness rather than a cryptographically secure one, so the resulting symmetric keys could be derived.

Impact

An attacker could predict and derive the generated symmetric keys and use them to access a user's IoT hub.

What the attacker needed

Access to the affected CLI or extension; ability to derive the key pattern

The fix

The update was fixed by randomising the key generation within the Azure IoT CLI extension.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Encryption keys need to be unpredictable, like a good dice roll. Here the tool that made new keys did so in a pattern an outsider could guess, so the keys were no longer secret. Anyone who could work out the pattern could get into someone else's IoT hub, which is the service that connects and manages internet-connected devices.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by Cristian Pop

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.