Android Stagefright Vulnerability Attack

Source: Internet
Author: User

1. Introduction

Zimperium, the network Security Agency, recently found an Android's most serious vulnerability, which is expected to affect 95% of Android devices, which could allow an attacker to remotely manipulate the phone's microphone, steal files, view messages, and obtain personal certificates. This vulnerability exists on all versions of Android 2.2 to 5.1.

    1. How to trigger a vulnerability attack
      The vulnerability is not proactive vulnerability, do not require user manual triggering, concealment is very high.
      A video that is targeted for this vulnerability can be triggered in any way, including but not limited to the use of MMS, QQ, which will trigger the vulnerability by receiving this video. Playing this video online with chrome will also trigger an attack.
2. Vulnerability description

The vulnerability is due to an overflow caused by an Android Stagefright buffer.
Examples are as follows: (Nexus 5, Android 5.1.1)

This newly discovered vulnerability is especially risky because it does not have to open the file or link sent by an attacker, as it does with phishing and other attacks, and even if the victim does nothing it can sneak into the device and erase the evidence before the user discovers it.
The Stagefright vulnerability is assigned to the following CVE:
cve-2015-1538
cve-2015-1539
cve-2015-3824
cve-2015-3826
cve-2015-3827
cve-2015-3828
cve-2015-3829

3. Solution

Although Zimperium Google submitted a bug patch, the user could not receive a patch update for a short period of time.
In addition CyanogenMod from the submission can be seen, has fixed some of the vulnerabilities.
According to CM's commit update, it can be seen that the parser part of the MEPG4Extractor.cpp in Stagefright is caused by a memory leak when metadata is processed.
https://github.com/CyanogenMod/android_frameworks_av/commits/cm-12.0

Main functions:
Parse3gppmetadata
Parsechunk

 status_t mpeg4extractor::p arse3gppmetadata (off64_t offset, size_    T size , int  depth) {- if  (size  < 4 ) {+ if  (size  < 4
      | |     size  = = Size_max) {return  error_malformed; }-uint8_t *buffer  = new (Std::nothrow) Uint8_t[size
      ];+ uint8_t *buffer  = new (Std::nothrow) Uint8_t[ Size  + 1 ];  
+        if (size < 6) {+            return ERROR_MALFORMED;+        }+
parseChunk:+            if (SIZE_MAX - chunk_size <= size)+                return ERROR_MALFORMED;+                 const int kSkipBytesOfDataBox = 16;+                if (chunk_data_size <= kSkipBytesOfDataBox) {+                    return ERROR_MALFORMED;+                }+                 mFileMetaData->setData(

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Stagefright Vulnerability Attack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.