Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 9695860 output invalid #9

Open
hubert3 opened this issue Jan 10, 2014 · 6 comments
Open

Bug 9695860 output invalid #9

hubert3 opened this issue Jan 10, 2014 · 6 comments

Comments

@hubert3
Copy link

hubert3 commented Jan 10, 2014

$ java -jar ~/ZipArbitrage/bin/AndroidZipArbitrage.jar --9695860 orig.apk patched.apk
Using Bug 9695860 to circumvent Android signatures

All seems fine, but:

$ adb install patched.apk
Whoops: didn't find expected signature
read_central_directory_entry failed
file 'MasterKeysModded-orig.apk' is not a valid zip file
rm failed for /data/local/tmp/MasterKeysModded-orig.apk, No such file or directory

@Fuzion24
Copy link
Owner

What android device is this? It may have been patched.
Does the example application of this bug install?

@Fuzion24
Copy link
Owner

It is the case that this tool will generate zip files which are not valid with regard to the spec (or a particular implementation), but are used to exploit an edgecase. So, it may be the case that normal unix tools don't like the files produced.

@hubert3
Copy link
Author

hubert3 commented Jan 10, 2014

It's a Samsung S4 running 4.2.2 which Cydia Impactor still works on, and which the Bluebox checker claims is still vulnerable to 9695860. Will try the example APK now

@hubert3
Copy link
Author

hubert3 commented Jan 11, 2014

bug9695860.apk installs fine on the phone. unzip -v bug9695860.apk also does not return any errors, whereas unzip -v on MasterKeysModded-orig.apk returns errors.

@Fuzion24
Copy link
Owner

Hmm, this seems like maybe the command line params are getting messed up somewhere.

@Fuzion24
Copy link
Owner

If you're just trying to gain system permissions, did you try just replacing the manifest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants