Bertrand Guay-Paquet created WICKET-5171:
--------------------------------------------
Summary: PackageResourceGuard grants access to localized html
templates
Key: WICKET-5171
URL: https://issues.apache.org/jira/browse/WICKET-5171
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 6.7.0
Reporter: Bertrand Guay-Paquet
Priority: Critical
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