You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jan Stettler (JIRA)" <ji...@apache.org> on 2017/05/19 09:00:12 UTC
[jira] [Updated] (SLING-6865) Default Config sling/xss/config.xml
and XSSFilterImpl is not the same
[ https://issues.apache.org/jira/browse/SLING-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Stettler updated SLING-6865:
--------------------------------
Description:
There is a different default config for XSSFilterImpl .href
In XSSFilter the Pattern looks like
{code}
(\\s)*((ht|f)tp(s?)://|mailto:)[\\p{L}\\p{N}]+[\\p{L}\\p{N}\\p{Zs}\\.\\#@\\$%\\+&;:\\-_~,\\?=/!\\*\\(\\)]*(\\s)*"
{code}
in the /libs/sling/xss/config.xml itself it looks like
{code}
(\s)*((ht|f)tp(s?)://|mailto:)[\p{L}\p{N}]+[\p{L}\p{N}\p{Zs}\.\#@\$%\+&;:\-_~,\?=/!\*\(\)]*(\s)*
{code}
In the config file there is a missing (\\)
Also the SLING-INF.content/config.xml has the wrong Pattern.
Can you fix this?
Problem is in package: com.adobe.granite.xssprotection-5.5.68 and com.adobe.granite.xssprotection-5.5.72
was:
There is a different default config for XSSFilterImpl .href
In XSSFilter the Pattern looks like
{code}
(\\s)*((ht|f)tp(s?)://|mailto:)[\\p{L}\\p{N}]+[\\p{L}\\p{N}\\p{Zs}\\.\\#@\\$%\\+&;:\\-_~,\\?=/!\\*\\(\\)]*(\\s)*"
{code}
in the /libs/sling/xss/config.xml itself it looks like
{code}
(\s)*((ht|f)tp(s?)://|mailto:)[\p{L}\p{N}]+[\p{L}\p{N}\p{Zs}\.\#@\$%\+&;:\-_~,\?=/!\*\(\)]*(\s)*
{code}
In the config file there is a missing (\\)
Can you fix this?
> Default Config sling/xss/config.xml and XSSFilterImpl is not the same
> ---------------------------------------------------------------------
>
> Key: SLING-6865
> URL: https://issues.apache.org/jira/browse/SLING-6865
> Project: Sling
> Issue Type: Bug
> Components: XSS Protection API
> Reporter: Jan Stettler
> Priority: Critical
>
> There is a different default config for XSSFilterImpl .href
> In XSSFilter the Pattern looks like
> {code}
> (\\s)*((ht|f)tp(s?)://|mailto:)[\\p{L}\\p{N}]+[\\p{L}\\p{N}\\p{Zs}\\.\\#@\\$%\\+&;:\\-_~,\\?=/!\\*\\(\\)]*(\\s)*"
> {code}
> in the /libs/sling/xss/config.xml itself it looks like
> {code}
> (\s)*((ht|f)tp(s?)://|mailto:)[\p{L}\p{N}]+[\p{L}\p{N}\p{Zs}\.\#@\$%\+&;:\-_~,\?=/!\*\(\)]*(\s)*
> {code}
> In the config file there is a missing (\\)
> Also the SLING-INF.content/config.xml has the wrong Pattern.
> Can you fix this?
> Problem is in package: com.adobe.granite.xssprotection-5.5.68 and com.adobe.granite.xssprotection-5.5.72
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)