vendor:
OTP Service
by:
Laginimaineb
7,8
CVSS
HIGH
Buffer Overflow
120
CWE
Product Name: OTP Service
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Android
2017
OTP Service Buffer Overflow Vulnerability in Samsung Devices
The OTP service provided by Samsung devices allows a client to provide a buffer from the Non-secure World (NWD) to be sent to the Secure-World (SW). However, the service does not validate the request length field at all, allowing an attacker to specify any value. This length field is then used in a 'memcpy' call in order to copy the data from the parcel to an internal heap-allocated buffer, resulting in a buffer overflow vulnerability.
Mitigation:
Validate the request length field before copying the data from the parcel to an internal heap-allocated buffer.