Closed microbit-grace closed 8 months ago
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?
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 https://github.com/microbit-foundation/microbit-android/pull/46/commits/1778a8549ee54d19d063f0f82c556ac13bf9d0fb
Thanks @microbit-grace Hopefully that will get rid of the warning.
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