New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 721530 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

WebAPK Comment check should check 'gaps' in apk.

Project Member Reported by scottkir...@chromium.org, May 11 2017

Issue description

APKs are build on top of jar files which are essentially zip files.
The zip file format is flexible and gaps can exist in the zip that are ignored when uncompressing the archive. The danger is that code could potentially be stored in these 'gaps' and loaded dynamically and then executed.

Specific cases are:
* Gap before start of zip.
* Gap at the end of the the zip.
* Gap before the EOCD.
* Gap before the Central Directory.
* Gap between zip files.

The apksigner (v2 signing) stores some signing info before the central directory, so that gap should still be supported (up to a point), but only if its signature is detected.

The Comment signed verification code still needs to be performant.

 
Project Member

Comment 1 by bugdroid1@chromium.org, May 19 2017

Labels: -Pri-3 M-60 Pri-1
Anything left here or can it be closed?
Still missing gaps between files in a zip. Not sure how I'll do it, either sorting or using a map since the order of the files isn't guaranteed to be in file offset order.
Status: Fixed (was: Started)

Sign in to add a comment