[ 
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.java 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 (\\)

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


> 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.java 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)

Reply via email to