Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Droid のRoot化は何をしていたのか

HT-03A のルート権限を取得は、Android 1.5 のバグを突いて行うことができました。Android 1.6 では当然修正されたので Droid のルート権限取得はなかなかできなかったようですが、2.0.1 へのアップデートが行われたときにルート権限取得もできてしまいました。これも Android のバグでした。

問題のコードは、bootable/recovery/verifier.c の中にありました。

int i;
   for (i = 4; i < eocd_size-3; ++i) {
       if (eocd[i  ] == 0x50 && eocd[i+1] == 0x4b &&
           eocd[i+2] == 0x05 && eocd[i+1] == 0x06) {
           // if the sequence $50 $4b $05 $06 appears anywhere after
           // the real one, minzip will find the later (wrong) one,
           // which could be exploitable.  Fail verification if
           // this sequence occurs anywhere after the real one.
           LOGE("EOCD marker occurs after start of EOCD\n");
           fclose(f);
           return VERIFY_FAILURE;
       }
   }

このコードは、update.zip の署名をチェックする部分だそうで、見てのとおり条件式は決して true になりませんから、verify failure にならないのです。

Droid のときには、これを利用して、本物の update.zip の後ろにさらに別のzipを付加してだましたようです。

もちろん、今では修正済みです。

Android では一部のユーザがルート権限を取りたがる、そして、しばしば取ることができる、ということも知られてきましたから、ベンダーや事業者もこれからは気を使うのではないでしょうか。Xperia など 1.6 の製品はかなり堅牢なのではないかと思います。 Nexus One はわざわざハックしなくとも最初から入り口が設けてありますが、これは例外でしょう。

PAGE TOP