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;
|
||||
}
|
||||
|
||||
Path targetFile = dest.resolve( entry.getName() );
|
||||
Path targetFile = dest.resolve( entry.getName() ).normalize();
|
||||
|
||||
// prevent Zip Slip
|
||||
if ( targetFile.startsWith( dest ) )
|
||||
|
|
Loading…
Reference in New Issue