Skip to content
Access control Advisory Advanced CVE-2020-16993

Microsoft Azure Sphere uid_map UID uniqueness privilege escalation vulnerability

The application manager on Azure Sphere did not check that user IDs in the uid_map file were unique, so a tampered file could give an attacker's application the same user ID as a system application. This let the attacker read the system app's config folder and see its process, widening the attack surface for further privilege escalation.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A privilege escalation vulnerability exists in the uidmap functionality of Microsoft Azure Sphere 20.06. A specially crafted uidmap file can cause multiple applications to get the same UID assigned, thus broadening the attack surface.

Claudio Bozzato, Lilith >_> and Dave McDaniel, 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

Likely the application manager validated that each UID was above 999 but never checked that UIDs were unique across entries.

Impact

The attacker's app gains the same UID as a system app, giving access to that app's config folder and process information and opening a larger attack surface for further privilege escalation.

What the attacker needed

Ability to modify /mnt/config/uid_map; a reboot to relaunch the app

How it was found

  1. Modify the uid_map file so the attacker's component ID is assigned the same UID as a system app
  2. Reboot so the system relaunches the attacker's application
  3. The attacker's app now runs with the shared UID and can read the system app's config folder and see its process

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.

Every app on the device is meant to run under its own user number, so one app cannot touch another app's files. The startup program that hands out these numbers never checked for duplicates, so an attacker who can edit the list can give their app the same number as a trusted system app. Sharing a number means sharing access to that app's files and process details.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Claudio Bozzato

View all

2 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.