You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2013/05/02 10:46:16 UTC

[jira] [Deleted] (WICKET-5171) PackageResourceGuard grants access to localized html templates

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

Sven Meier deleted WICKET-5171:
-------------------------------

    
> PackageResourceGuard grants access to localized html templates
> --------------------------------------------------------------
>
>                 Key: WICKET-5171
>                 URL: https://issues.apache.org/jira/browse/WICKET-5171
>             Project: Wicket
>          Issue Type: Bug
>            Reporter: Bertrand Guay-Paquet
>            Priority: Critical
>              Labels: resource, security
>
> PackageResourceGuard#acceptAbsolutePath(String path) line 97 has this:
> if ("html".equals(ext) &&
> 	getClass().getClassLoader().getResource(path.replaceAll("\\.html", ".class")) != null)
> {
> 	log.warn("Access denied to shared (static) resource because it is a Wicket markup file: " +
> 		path);
> 	return false;
> }
> This does not properly account for localized Wicket markup files like "MyPage_fr.html". I was able to craft a URL which returns the localized templates. This is a security issue because such templates may contain sensitive information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira