mirror of https://github.com/apache/maven.git
[MNG-6942] Arbitrary file write during archive extraction ("Zip Slip") in wrapper
This commit is contained in:
parent
d35573e06c
commit
101caea3c3
|
@ -211,7 +211,7 @@ public class Installer
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Path targetFile = dest.resolve( entry.getName() );
|
Path targetFile = dest.resolve( entry.getName() ).normalize();
|
||||||
|
|
||||||
// prevent Zip Slip
|
// prevent Zip Slip
|
||||||
if ( targetFile.startsWith( dest ) )
|
if ( targetFile.startsWith( dest ) )
|
||||||
|
|
Loading…
Reference in New Issue