Huawei TrustZone TALoader Information Leak
The TALoader binary writes the base address of a trusted application into a fixed memory page, and any trusted application that can read memory arbitrarily can leak this address, defeating ASLR. This allows an attacker to bypass address randomisation in a generic and deterministic way.
blog.impalabs.com
Published on blog.impalabs.com
Alexandre Adamski](https://blog.impalabs.com/authors/alexandre-adamski.html) [{{media:2}}
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the TALoader writes sensitive mapping information, including the randomised base address, to a fixed address (0x70000000) that is readable by trusted applications.
What the attacker needed
Arbitrary read in a trusted application; target device with vulnerable TALoader
The fix
Huawei states that the issue was fixed in the September 2022 update.
How it was found
- Use an arbitrary read primitive in a trusted application to read the fixed page at 0x70000000.
- Read the entry at offset 0x20 within the fifth entry (address 0x700000c0) to obtain the base address.
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 write-up has not been written yet. The Original tab links to the source.
Trusted applications run in a secure part of the phone's processor. To make attacks harder, their code is loaded at a random address each time (this is called ASLR). Here, the loader writes that secret address into a fixed, predictable memory location, so any trusted app that can read memory can find out where the code is, making other attacks easier.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.