You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2019/04/19 10:00:00 UTC

[jira] [Resolved] (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 ]

Radu Cotescu resolved SLING-6865.
---------------------------------
    Resolution: Invalid

> 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}\.\#@\$%\+&amp;;:\-_~,\?=/!\*\(\)]*(\s)*
> {code}
> In the config file there is a missing 
> {code}(\\){code}
> 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
(v7.6.3#76005)