We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 798b1e1 + 149c0aa commit 32487dfCopy full SHA for 32487df
src/main/java/com/akathist/maven/plugins/launch4j/Launch4jMojo.java
@@ -525,6 +525,9 @@ private File unpackWorkDir(Artifact artifact) throws MojoExecutionException {
525
while (en.hasMoreElements()) {
526
JarEntry je = en.nextElement();
527
File outFile = new File(dest, je.getName());
528
+ if (!outFile.toPath().normalize().startsWith(dest.toPath().normalize())) {
529
+ throw new RuntimeException("Bad zip entry");
530
+ }
531
File parent = outFile.getParentFile();
532
if (parent != null) parent.mkdirs();
533
if (je.isDirectory()) {
0 commit comments