OSDN Git Service

Fix security hole in Google backup transport registration
authorChristopher Tate <ctate@google.com>
Thu, 22 Apr 2010 00:58:07 +0000 (17:58 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 22 Apr 2010 01:02:56 +0000 (18:02 -0700)
commita32504fce826fb66b53991d04819ece3e6bf105e
treeb51c9b09c4c071e5d90adac6ad766388676c873d
parent0dde41fbe0e36bfe059399c839604267ad0318c1
Fix security hole in Google backup transport registration

Previously, it was conceivable that a 3rd party application on a non-GED
device could publish a service that supported the (hidden) IBackupTransport
interface and spoofed the Google backup transport's package and component
name.  This could allow it to secretly intercept all data moved through the
backup mechanism.

Fix by ensuring that the package in question exists and is part of the
OS itself (FLAG_SYSTEM in its ApplicationInfo description) before binding
to it.

Fixes bug #2457063

Change-Id: I3487572be45c2014fa209beacfe3ac6f8270f872
services/java/com/android/server/BackupManagerService.java