Skip to content

Fix zip path traversal error and update to v3.0.6 (56) #46

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

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

microbit-grace
Copy link
Collaborator

@microbit-grace microbit-grace commented Apr 2, 2024

Error found in pre-launch report.

"Your app contains an unsafe unzipping pattern that may lead to a Path Traversal vulnerability. Please see this Google Help Center article to learn how to fix the issue.

com.samsung.microbit.utils.ProjectsHelper.installSamples"

cc: @jaustin @microbit-matt-hillsdon

@microbit-grace microbit-grace changed the title Fix zip path traversal error and upgrade to v3.0.6 (56) Fix zip path traversal error and update to v3.0.6 (56) Apr 2, 2024
@martinwork
Copy link
Collaborator

It's not going to happen, because the zip is internal to the app, but...

What happens if the exception gets thrown? Does it get caught, or crash the app? Could we get away without throwing an exception, and just step over files with problem paths and continue copying the rest?

@microbit-grace
Copy link
Collaborator Author

It's not going to happen, because the zip is internal to the app, but...

What happens if the exception gets thrown? Does it get caught, or crash the app? Could we get away without throwing an exception, and just step over files with problem paths and continue copying the rest?

I suppose it would crash the app. I have added a commit to continue instead 1778a85

@martinwork martinwork merged commit 3e23716 into from300 Apr 2, 2024
@martinwork
Copy link
Collaborator

martinwork commented Apr 2, 2024

Thanks @microbit-grace Hopefully that will get rid of the warning.

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

Successfully merging this pull request may close these issues.

2 participants