Skip to content
Crypto Advisory Advanced CVE-2021-42300

Microsoft Azure Sphere Security Monitor SMSyscallStageBaseManifests image validation signature check bypass vulnerability

A signature check bypass in Azure Sphere's Security Monitor allows an attacker with the AZURE_SPHERE_CAP_UPDATE_IMAGE capability to stage unsigned base manifests by setting an image type greater than 0x19, enabling firmware downgrade to older versions.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Medium 6.0 View original

A signature check bypass vulnerability exists in the Security Monitor SMSyscallStageBaseManifests image validation functionality of Microsoft Azure Sphere 21.01. A specially crafted manifest can lead to a firmware downgrade.

Claudio Bozzato and Lilith >_>, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

The code only performs signature verification when the image type is less than 0x19, so any image type of 0x19 or greater bypasses the check.

Impact

An attacker could downgrade the device's firmware to a previous version, potentially causing a denial of service or enabling exploitation of known vulnerabilities in older firmware.

What the attacker needed

AZURE_SPHERE_CAP_UPDATE_IMAGE capability

The fix

The vendor patched the vulnerability, likely by enforcing signature verification for all image types.

How it was found

  1. Obtain the AZURE_SPHERE_CAP_UPDATE_IMAGE capability.
  2. Craft a base manifest with an image type greater than 0x19.
  3. Call SMSyscallStageBaseManifests with the crafted manifest.
  4. Call SMSyscallInstallStagedImages to flash the staged images.

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.

Azure Sphere is a secure platform for internet-of-things devices. The Security Monitor is a low-level component that checks the digital signatures of firmware updates to ensure they are genuine. This report found that by crafting a manifest with a specific field set to a value above a certain threshold, the signature check is skipped, allowing an attacker to install older, potentially vulnerable firmware.

What is Crypto?

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

More by Claudio Bozzato

View all

13 more disclosed reports, best first.

More from Cisco Talos

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.