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

Catch ZipException when inflating #21060

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

nbradbury
Copy link
Contributor

@nbradbury nbradbury commented Jul 16, 2024

Fixes #21040

One change in Android 14 is that a ZipException may be thrown during ZIP inflation due to the ZIP traversal exploit.

Scanning our code base I found only a single instance of ZIP inflation, so this small PR addresses this one situation. Note that since the ZIP is opened via setInput with a ByteArray as opposed to from a file, this exploit may not even be a possibility. However, I felt the exception handling should still be added for safety.

@nbradbury nbradbury marked this pull request as ready for review July 16, 2024 16:16
Copy link

sonarcloud bot commented Jul 16, 2024

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21060-8d89a13
Commit8d89a13
Direct Downloadjetpack-prototype-build-pr21060-8d89a13.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21060-8d89a13
Commit8d89a13
Direct Downloadwordpress-prototype-build-pr21060-8d89a13.apk
Note: Google Login is not supported on these builds.

@nbradbury nbradbury merged commit ba705b7 into feature/android-14 Jul 16, 2024
16 of 20 checks passed
@nbradbury nbradbury deleted the issue/21040-android14-zip-traversal branch July 16, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants