You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/03/23 18:07:51 UTC

[jira] Reopened: (AXIS2-4282) JarFileClassLoader allows resources to be loaded from locations outside of the directory specified in its classpath

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

Andreas Veithen reopened AXIS2-4282:
------------------------------------


The fix only rejects resource names such as "META-INF/../../some.file" which would be outside of the directory. We should go one step further and also exclude "META-INF/../someother.file", i.e. any resource name with a ".." component. Indeed, according to the JRE documentation [1]:

"A resource is identified by a String. This String, while possibly empty, is a /-separated sequence of substrings, each a valid Java programming lanaugage identifier, followed by a name of the form "<shortName>" or "<shortName>.<extension>". Both "shortName" and "extension" are composed of valid Java Letters and Numbers (section 3.8 in JLS)."

[1] http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html

> JarFileClassLoader allows resources to be loaded from locations outside of the directory specified in its classpath
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4282
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4282
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5, nightly
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 1.5, nightly
>
>
> If JarFileClassLoader contains one classpath entry that is a directory, it will allow resources to be loaded from ANY directory on the file system.
> The JarFileClassLoader should of course only allow resources to be loaded from within the directory specified.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.