cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-6216) No output sanitizing in FormattedServiceListWriter
Date Mon, 26 Jan 2015 21:43:36 GMT


Sergey Beryozkin commented on CXF-6216:

I did. If the "if" condition is true then it is a safe path and it is always holds true when
a path info is either empty or longer than just "/" (the 2nd part of the if condition appears
to be redundant). If path info is "/" then the reqPrefix is returned as is but in this case
it is a host + port + context path + servlet path only.

Cheers. Sergey  

> No output sanitizing in FormattedServiceListWriter 
> ---------------------------------------------------
>                 Key: CXF-6216
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.0.1
>            Reporter: Donald Kwakkel
> No output sanitizing is done, which makes the code vulnerable for injection. I do not
have a specific use case, but it is good habit to do. Maybe you can use the OWASP Sanitizer:
> One example from the file: 
>         writer.write("<span class=\"field\">Endpoint address:</span> " +
"<span class=\"value\">"
>                      + absoluteURL + "</span>");

This message was sent by Atlassian JIRA

View raw message