Android If you have an arbitrarily written vulnerability, how to turn write permissions into Execute permissions

Source: Internet
Author: User

This topic I think is the test how to carry out the right, the result is this:
1 . Dexclassloader dynamic load application writable dex executable 2. The Java.lang.Runtime.exec method executes an elf file that the application can write to 3. System.load and System.loadlibrary dynamically load applications writable Elf shared objects 4. Native code performs application-writable ELF files using functions such as System, Popen, and so on C8>5. Native code uses Dlopen to load an Elf shared object that the app can write to 6. Using the Multidex mechanism

Taking the 2nd as an example, the answer should mean that the application has a place called the runtime.exec, if the file path is changed to the elf file written by the attacker (because there is write permission), and then the application execution.

Android If there is an arbitrary write vulnerability, how to turn Write permissions to execute permissions

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.