kali834x opened a new pull request, #1335:
URL: https://github.com/apache/axis-axis2-java-core/pull/1335

   the static initializer of TempFileManager, which runs the first time an aar 
or mar carrying lib/*.jar is deployed (Utils.getURLsForAllJars via 
Utils.createTempFile), deletes every axis2-tmp-* entry in java.io.tmpdir that 
has no .lck file, and both its filter and recursiveDelete use File.isDirectory, 
which follows symbolic links. a local user who creates /tmp/axis2-tmp-x 
pointing at a directory the axis2 account can write (the services repository, 
the webapp) gets that directory emptied by the server on its next such 
deployment (CWE-59). ConfigurationContext.deleteTempFiles, run from terminate() 
over the artifacts dir that falls back to the shared java.io.tmpdir/_axis2, has 
the same problem for a link placed inside it. all three checks now use 
Files.isDirectory with NOFOLLOW_LINKS, so a link is removed or skipped rather 
than descended into, and stale temp dirs are still cleaned up. 
TempFileManagerTest and ConfigurationContextTempCleanupTest fail before the 
change (the link target i
 s emptied) and pass after, and the kernel module verify run is green.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to