Page 2 of 2

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 23 May 2011, 23:14
by cagatay.civici
There are plans to drop dynamiccontentstreamer and use our custom ResourceHandler to do this stuff for 3.0.

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 23 May 2011, 23:18
by cagatay.civici

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 24 May 2011, 01:45
by robert.m
Ok now I was able to reproduce this. I was using Tomcat 7.0.4. Thanks for posting your filter, I'll include this in my project!

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 24 May 2011, 10:26
by pavel.horal
There are plans to drop dynamiccontentstreamer and use our custom ResourceHandler to do this stuff for 3.0.
http://code.google.com/p/primefaces/iss ... il?id=2073
Glad to hear that (I would vote to reclassify as a bug or at least assign higher priority). I am still willing to send you the exploit if you are interested.

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 30 May 2011, 16:16
by aliok_tr
The following code could be used to prevent the injection until this issue is resolved:
Yes, simple solution.

However, if one uses JSF's error handling mechanism the way the error page is also served by JSF, then the result of the exploit still might be shown.

So, in our case, we made a redirection to a page not served by JSF.

Just a heads up...

Cheers,

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 30 May 2011, 17:18
by pavel.horal
However, if one uses JSF's error handling mechanism the way the error page is also served by JSF, then the result of the exploit still might be shown.
Very good point. We use JSF error pages... however the ERROR dispatch is also caught (second time) by the protecting servlet filter. We end up with showing the error page of the servlet container.

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 18 Jul 2017, 09:16
by franz.pfeifer
I assume this issue isn't fixed in the elite version 3.5.28, right?

Re: Security issue - EL injection via DynamicContentStreamer

Posted: 20 Jul 2017, 10:27
by pavel.horal
franz.pfeifer wrote:
18 Jul 2017, 09:16
I assume this issue isn't fixed in the elite version 3.5.28, right?
If you check issue linked by Optimus (https://code.google.com/archive/p/prime ... ssues/2073), it was fixed for 3.0 release.