What is Stagefright vulnerabilities in Android?
Android devices running Android versions 2.2 through 5.1.1_r5 contain vulnerabilities in the Stagefright media playback engine. Exploitation of these vulnerabilities may allow an attacker to access multimedia files or potentially take control of a vulnerable device.
Detection
To test your Andorid if it is vulnerable to Stagefright vulnerabilities, you can use the following Apps by Zimperium INC.
Google Play - Stagefright Detector by Zimperium INC
Protection
It is recommended to update/upgrade your Android ROM to non-vulnerable version. If your vendors do not release any update/upgrade, you can perform the following steps for a workaround.
Workaround to protect your Android device
Remarks
I confirmed that CyanogenMod 12.1 Nightly for OnePlus One is fixed the Stagefright vulnerabilities by using Google Play - Stagefright Detector by Zimperium INC while OnePlus One v5.0.2 (Cyanogen OS version 12.0-YNG1TAS2I3) and Google Nexus 5 v5.1.1 (Build number LMY48B) are still vulnerable to Stagefright vulnerabilities at the time of this writing.
It is also confirmed that CyanogenMod 12.0 and 12.1 are fixed for the vulnerabilities. Or, you may consider to flash CyanogenMod ROM if your devices are supported.
If you have OnePlus One, you can follow this guide to update/upgrade your OnePlus One.
That's all! See you.
Open Source is a great idea and it has changed the world!
Open Source forever ....
While you do not know attack, how can you know about defense? (未知攻,焉知防?)
Do BAD things .... for the RIGHT reasons -- OWASP ZAP
It is easier to port a shell than a shell script. -- Larry Wall
Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris. -- Larry Wall
为天地立心, 为生民立命, 为往圣继绝学, 为万世开太平。 -- 王炜
Showing posts with label OnePlus One. Show all posts
Showing posts with label OnePlus One. Show all posts
Thursday, August 06, 2015
Thursday, July 30, 2015
HOWTO : Flash CyanogenMod 12.1 ROM to OnePlus One
Hardware : OnePlus One 64GB (Black) (CyanogenMod 12, Android 5.0.2)
Desktop : Ubuntu Desktop 14.04.2 LTS
Accessories : OTG USB cable and 32GB USB thumb drive
I am running Ubuntu Desktop 14.04.2 LTS. However, the android-tools-adb is out of date to operate with Android 5.1. So, we use OTG USB to copy all the required files to the OnePlus One ("storage" directory) instead of using adb command.
Step 1 :
Install Android tools :
Step 2 :
Enable the Developer options at OnePlus One :
"
Then tap on "
"
Step 3 :
Unlock the bootloader :
*** Please note that all user data will be destoryed for this step ***
or
Reboot to bootloader by selecting "
Then,
OnePlus One will be reboot.
Step 4 :
TWRP Recovery (TeamWin Recovery) for OnePlus One :
https://twrp.me/devices/oneplusone.html
Download the latest TWRP for OnePlus One :
https://dl.twrp.me/bacon/
e.g. twrp-2.8.7.0-bacon.img
Then rename it to twrp.img and copy to "
Flash TWRP Recovery :
Reboot to Fastboot by selecting "
or
* Make sure your computer has been allowed to communicate with the OnePlus One (there will be a pop up for your to confirm).
OnePlus One will be shutdown and then you boot it up to TWRP Recovery by holding "Volume Down" and "Power" button.
Step 5 :
CyanogenMod 12.1 Nightly ROM (Android 5.1.1) for OnePlus One (There is no stable CyanogenMod 12.x ROM for OnePlus One) :
http://download.cyanogenmod.org/?device=bacon&type=nightly
Copy the CyanogenMod ROM, such as cm-12.1-20150729-NIGHTY-bacon.zip, to "
Flash CyanogenMod ROM :
Reboot to TWRP Recovery. Select "
Select "
Select "
Step 6 :
Get Android 5.1 Google Play :
For OnePlus One, you need to get :
Copy the gapp-5.1-arm-2015-07-17-13-29.zip to "
Boot to TWRP Recovery and select "
Now you can configure your OnePlus One with CyanogenMod 12.1 ROM and download the Apps from Google Play.
Optional :
If you want to replace the TWRP Recovery with the CyanogenMod Recovery, you can enable "
You can consider to lock your bootloader back too :
*** If you unlock the bootloader, all your data will be destroyed ***
You can also consider to turn off the "
Remark
CyanogenMod stated that the recent Stagefright vulnerabilities has been fixed in CyanogenMod 12 and 12.1 Nightlies before the time of this writing. Please refer to here.
Since Android ROM may have vulnerabilities, it is better to buy Google Android products as it will provide the most latest fix or update to their devices. Or you can consider to flash responsible 3rd party ROM developers, such as CyanogenMod. However, my Google Nexus 5 (5.1.1) does not have the fix OTA at the time of this writing. So sad.
UPDATE on August 06, 2015
I confirmed that CyanogenMod 12.1 Nightly for OnePlus One is fixed the Stagefright vulnerabilities by using Google Play - Stagefright Detector by Zimperium INC while OnePlus One v5.0.2 (Cyanogen OS version 12.0-YNG1TAS2I3) and Google Nexus 5 v5.1.1 (Build number LMY48B) are still vulnerable to Stagefright vulnerabilities.
That's all! See you.
Desktop : Ubuntu Desktop 14.04.2 LTS
Accessories : OTG USB cable and 32GB USB thumb drive
I am running Ubuntu Desktop 14.04.2 LTS. However, the android-tools-adb is out of date to operate with Android 5.1. So, we use OTG USB to copy all the required files to the OnePlus One ("storage" directory) instead of using adb command.
Step 1 :
Install Android tools :
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastbootStep 2 :
Enable the Developer options at OnePlus One :
"
Settings" -- "About phone"Then tap on "
Build number" for seven times"
Settings" -- "Developer options"Enable Android debugging
Enable Advanced reboot
Disable Cyanogen recoveryStep 3 :
Unlock the bootloader :
*** Please note that all user data will be destoryed for this step ***
sudo adb reboot bootloaderor
Reboot to bootloader by selecting "
Bootloader" from OnePlus OneThen,
sudo fastboot oem unlockOnePlus One will be reboot.
Step 4 :
TWRP Recovery (TeamWin Recovery) for OnePlus One :
https://twrp.me/devices/oneplusone.html
Download the latest TWRP for OnePlus One :
https://dl.twrp.me/bacon/
e.g. twrp-2.8.7.0-bacon.img
Then rename it to twrp.img and copy to "
storage" directory of OnePlus One.Flash TWRP Recovery :
Reboot to Fastboot by selecting "
Bootloader" from OnePlus Oneor
sudo adb reboot bootloader
sudo fastboot devices
sudo flash recovery twrp.img* Make sure your computer has been allowed to communicate with the OnePlus One (there will be a pop up for your to confirm).
OnePlus One will be shutdown and then you boot it up to TWRP Recovery by holding "Volume Down" and "Power" button.
Step 5 :
CyanogenMod 12.1 Nightly ROM (Android 5.1.1) for OnePlus One (There is no stable CyanogenMod 12.x ROM for OnePlus One) :
http://download.cyanogenmod.org/?device=bacon&type=nightly
Copy the CyanogenMod ROM, such as cm-12.1-20150729-NIGHTY-bacon.zip, to "
storage" directory of OnePlus One.Flash CyanogenMod ROM :
Reboot to TWRP Recovery. Select "
Backup". To backup the OnePlus One stock ROM (CyanogenMod 12).Select "
Wipe". To delete all data EXCEPT "System" and "Internal storage" as your CyanogenMod 12.1 ROM is there. This step must do, otherwise; your flash will be failed due to "incorrect signature".Select "
Install". To select "/0" and then "/storage", select the CyanogenMod 12.1 Nightly image file.Step 6 :
Get Android 5.1 Google Play :
sudo apt-get update
sudo apt-get install gitgit clone https://github.com/cgapps/vendor_google.gitFor OnePlus One, you need to get :
~/vendor_google/arm/gapp-5.1-arm-2015-07-17-13-29.zipCopy the gapp-5.1-arm-2015-07-17-13-29.zip to "
storage" directory of OnePlus One.Boot to TWRP Recovery and select "
Install" to install Google Play.Now you can configure your OnePlus One with CyanogenMod 12.1 ROM and download the Apps from Google Play.
Optional :
If you want to replace the TWRP Recovery with the CyanogenMod Recovery, you can enable "
Cyanogen recovery" at "Developer options". When the next Nightly update is available, you can OTA it and it will replace the TWRP Recovery with CyanogenMod Recovery :Enable Cyanogen recoveryYou can consider to lock your bootloader back too :
sudo fastboot oem lock*** If you unlock the bootloader, all your data will be destroyed ***
You can also consider to turn off the "
Developer options" and disable "Advanced root" as well as "Android debugging".Remark
CyanogenMod stated that the recent Stagefright vulnerabilities has been fixed in CyanogenMod 12 and 12.1 Nightlies before the time of this writing. Please refer to here.
Since Android ROM may have vulnerabilities, it is better to buy Google Android products as it will provide the most latest fix or update to their devices. Or you can consider to flash responsible 3rd party ROM developers, such as CyanogenMod. However, my Google Nexus 5 (5.1.1) does not have the fix OTA at the time of this writing. So sad.
UPDATE on August 06, 2015
I confirmed that CyanogenMod 12.1 Nightly for OnePlus One is fixed the Stagefright vulnerabilities by using Google Play - Stagefright Detector by Zimperium INC while OnePlus One v5.0.2 (Cyanogen OS version 12.0-YNG1TAS2I3) and Google Nexus 5 v5.1.1 (Build number LMY48B) are still vulnerable to Stagefright vulnerabilities.
That's all! See you.
Labels:
Android,
CyanogenMod,
OnePlus One
Thursday, January 08, 2015
HOWTO : Kali Linux NetHunter on OnePlus One 64GB
The most simplest way to flash NetHunter is by using Windows application that provided by Offensive Security at here (the version at this writing is 1.1.6). You should follow the instructions on the screen to complete the task.
I select OnePlus One 64GB version as it comes with 3GB RAM and 64GB storage. It is running Cyanogen CM11 (version 4.4.4) ROM. It is very ideal for installing NetHunter in my own opinion. The current version of NetHunter does not support Android 5.0 and please do not try to flash onto it.
I am using MacBook Air with VMWare Fusion and Windows 8.1 guest to flash NetHunter. The Android USB driver provided by the captioned application cannot be installed automatically in my case. I need to install it manually via "Device Manager". Make sure two certifications (ADB and Fastboot) as well as the USB driver have been installed properly, the process will be very smooth.
If you do not have Windows machine or virtual machine available, you should follow the instructions mentioned in the official site. Make sure you root the device before doing so. This task will be very hard and more easy to run into mistakes. Make sure you have read the instructions on the official site completely and carefully before doing so. Therefore, I recommend not to use this method unless you need to.
After the NetHunter is flashed, you can optionally encrypt your OnePlus One. Before doing that, you should unmount the Kali by issue the following by using "Terminal Emulator" :
Then reboot the OnePlus One. Once it is reboot, you can carrying out the phone encryption procedure.
After the encryption is completed, you need to re-mount the Kali by issue the following command :
That's all! See you.
I select OnePlus One 64GB version as it comes with 3GB RAM and 64GB storage. It is running Cyanogen CM11 (version 4.4.4) ROM. It is very ideal for installing NetHunter in my own opinion. The current version of NetHunter does not support Android 5.0 and please do not try to flash onto it.
I am using MacBook Air with VMWare Fusion and Windows 8.1 guest to flash NetHunter. The Android USB driver provided by the captioned application cannot be installed automatically in my case. I need to install it manually via "Device Manager". Make sure two certifications (ADB and Fastboot) as well as the USB driver have been installed properly, the process will be very smooth.
If you do not have Windows machine or virtual machine available, you should follow the instructions mentioned in the official site. Make sure you root the device before doing so. This task will be very hard and more easy to run into mistakes. Make sure you have read the instructions on the official site completely and carefully before doing so. Therefore, I recommend not to use this method unless you need to.
After the NetHunter is flashed, you can optionally encrypt your OnePlus One. Before doing that, you should unmount the Kali by issue the following by using "Terminal Emulator" :
su -c killkaliThen reboot the OnePlus One. Once it is reboot, you can carrying out the phone encryption procedure.
After the encryption is completed, you need to re-mount the Kali by issue the following command :
su -c bootkaliThat's all! See you.
Labels:
Android,
Kali Linux,
NetHunter,
OnePlus One
Tuesday, January 06, 2015
Subscribe to:
Posts (Atom)
