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

Microsoft Azure Sphere Normal World application READ_IMPLIES_EXEC personality unsigned code execution vulnerability

A vulnerability in Microsoft Azure Sphere's normal world allows a compromised application to set the READ_IMPLIES_EXEC personality and then use the brk syscall to create an executable heap, enabling execution of unsigned shellcode. An attacker who has already compromised an app could thus run arbitrary code despite the platform's memory protection.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Medium 6.2 View original

A code execution vulnerability exists in the normal world’s signed code execution functionality of Microsoft Azure Sphere 20.06. A specially crafted shellcode can cause a process’ heap to become executable.

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

The custom Linux security module only hooks mmap and mprotect, not brk, so setting the READ_IMPLIES_EXEC personality causes brk to allocate executable memory without triggering the protection.

What the attacker needed

Compromised application

How it was found

  1. Set the process personality to include READ_IMPLIES_EXEC.
  2. Call brk to extend the heap, which creates a new memory region with execute permission.
  3. Copy shellcode into the newly allocated heap memory.
  4. Jump to the shellcode to execute it.

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. Normally, it prevents memory that can be written to from also being executable, which stops attackers from running their own code. This report shows that by changing a process setting called a personality, an attacker who already controls an app can make new memory both writable and executable, bypassing that protection.

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.