[ 
https://issues.apache.org/jira/browse/MWRAPPER-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jorge Solórzano updated MWRAPPER-51:
------------------------------------
    Description: 
The project could be improved by using the Java Path API (NIO.2) available 
since Java 7 and also include some checks in paths and in some cases even 
improve the performance.

 * [https://www.oracle.com/technical-resources/articles/javase/nio.html]
 * [https://blogs.oracle.com/javamagazine/post/path-files-input-output]

This will help to have a cleaner code and

  was:
MavenWrapperDownloader.java could be improved by using the Java Path API 
(NIO.2) available since Java 7 and also include some checks in paths.

Also, Snyk reports a potential vulnerability of Unsanitized input from a 
command-line argument flows into java.io.File* where it is used as a path. This 
may result in a Path Traversal vulnerability and allow an attacker to 
read/write arbitrary files.


> Refactor using Java Path API (NIO.2)
> ------------------------------------
>
>                 Key: MWRAPPER-51
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-51
>             Project: Maven Wrapper
>          Issue Type: Improvement
>          Components: Maven Wrapper Scripts
>    Affects Versions: 3.1.0
>            Reporter: Jorge Solórzano
>            Priority: Normal
>
> The project could be improved by using the Java Path API (NIO.2) available 
> since Java 7 and also include some checks in paths and in some cases even 
> improve the performance.
>  * [https://www.oracle.com/technical-resources/articles/javase/nio.html]
>  * [https://blogs.oracle.com/javamagazine/post/path-files-input-output]
> This will help to have a cleaner code and



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to