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.
Originally disclosed on Cisco Talos
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.
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
- Obtain the AZURE_SPHERE_CAP_UPDATE_IMAGE capability.
- Craft a base manifest with an image type greater than 0x19.
- Call SMSyscallStageBaseManifests with the crafted manifest.
- 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.