myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (MYFACES-4266) Ajax update fails due to invalid characters in response XML (DoS)
Date Thu, 22 Nov 2018 15:01:00 GMT


ASF GitHub Bot commented on MYFACES-4266:

melloware commented on issue #27: MYFACES-4266: Ajax update fails due to invalid characters
in response XML (DoS)
   @tandraschko I think since Strings are immutable you will have no choice but to create
a new String but I could be wrong. 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Ajax update fails due to invalid characters in response XML (DoS)
> -----------------------------------------------------------------
>                 Key: MYFACES-4266
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>         Environment: jetty 9.4.14.v20181114
> JDK 10
>            Reporter: cnsgithub
>            Priority: Major
> I noticed that the {{<f:ajax />}} update fails when the updated form contains unicode
characters, which are not allowed in the [XML 1.0 spec|].
> h2. Expected Behaviour
> If the update response contains characters that are not allowed in XML, they should be
filtered by MyFaces before writing the response.
> h2. Actual Behaviour
> Some illegal XML characters are not filtered and therefore the browser fails to parse
the response.
> h2. Steps to reproduce
> I created a small github project to reproduce this behaviour: []
(branch myfaces)
>  To reproduce:
>  - {{git clone []}}
>  - {{git checkout myfaces}}
>  - run {{mvn clean package jetty:run}}
>  - after the server has started, open [http://localhost:8080/index.xhtml]
>  - Click the button, the error should occur
> The issue also occurs with user supplied inputs:
>  - open [http://localhost:8080/input.xhtml]
>  - Paste the characters from the {{illegal-xml-chars.txt}} file into the input field
>  - Click the button
> This issue should be addressed with high priority since it is security related (might
be exploited for Denial of Service).

This message was sent by Atlassian JIRA

View raw message