Skip to content
Info disclosure Write-up Advanced

Huawei TrustZone TA_SensorInfo Vulnerability

The TrustZone application TA_SensorInfo logs input parameters before validating their types, allowing an attacker to leak the address of a TEE_Param input buffer. This leaked address could then be used to launch further attacks.

blog.impalabs.com

Published on blog.impalabs.com

Alexandre Adamski](https://blog.impalabs.com/authors/alexandre-adamski.html) [{{media:2}}

The author, on blog.impalabs.com

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

The code uses the input parameters in a logging call before verifying their types, so invalid parameter types still get logged.

Impact

An attacker could leak the address of a TEE_Param input buffer, which could then be used to launch further attacks; the severity is rated Low.

What the attacker needed

Ability to invoke the trusted application

The fix

The vulnerability was fixed according to the patch table.

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.

TrustZone is a security feature in some phones that creates a safe area for sensitive code. This report found that a program in that safe area printed debugging information before checking what kind of input it received, so an attacker could see memory addresses that should be secret. Those addresses could help in more serious attacks later.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.