<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare für Jakob Korherr&#039;s Blog</title>
	<atom:link href="http://www.jakobk.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jakobk.com</link>
	<description>A blog about Java, MyFaces and web development</description>
	<lastBuildDate>Tue, 29 Nov 2011 04:36:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Kommentar zu JSF value expression injection vulnerability von djorm</title>
		<link>http://www.jakobk.com/2011/11/jsf-value-expression-injection-vulnerability/comment-page-1/#comment-852</link>
		<dc:creator>djorm</dc:creator>
		<pubDate>Tue, 29 Nov 2011 04:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=218#comment-852</guid>
		<description>Thanks for such a good write up and useful reproducer!</description>
		<content:encoded><![CDATA[<p>Thanks for such a good write up and useful reproducer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu JSF value expression injection vulnerability von JSF value expression injection vulnerability &#124; Syngu</title>
		<link>http://www.jakobk.com/2011/11/jsf-value-expression-injection-vulnerability/comment-page-1/#comment-840</link>
		<dc:creator>JSF value expression injection vulnerability &#124; Syngu</dc:creator>
		<pubDate>Thu, 24 Nov 2011 06:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=218#comment-840</guid>
		<description>[...] A few days ago an issue was reported to Mojarra. It basically states that it is possible in JSF 2 to perform ValueExpression injection when includeViewParams is set to true on a navigation case. This means an attacker can cause any method of any managed bean in the application to be executed.   &#160;   &#160;News     Read the original post on DZone... [...]</description>
		<content:encoded><![CDATA[<p>[...] A few days ago an issue was reported to Mojarra. It basically states that it is possible in JSF 2 to perform ValueExpression injection when includeViewParams is set to true on a navigation case. This means an attacker can cause any method of any managed bean in the application to be executed.   &nbsp;   &nbsp;News     Read the original post on DZone&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu JSF value expression injection vulnerability von J2EE Video Tutorial</title>
		<link>http://www.jakobk.com/2011/11/jsf-value-expression-injection-vulnerability/comment-page-1/#comment-838</link>
		<dc:creator>J2EE Video Tutorial</dc:creator>
		<pubDate>Thu, 24 Nov 2011 01:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=218#comment-838</guid>
		<description>Thank you for this info</description>
		<content:encoded><![CDATA[<p>Thank you for this info</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu JSF value expression injection vulnerability von Jakob Korherr's Blog &#187; JSF value expression injection vulnerability &#124; Java EE 6 Development &#124; Scoop.it</title>
		<link>http://www.jakobk.com/2011/11/jsf-value-expression-injection-vulnerability/comment-page-1/#comment-835</link>
		<dc:creator>Jakob Korherr's Blog &#187; JSF value expression injection vulnerability &#124; Java EE 6 Development &#124; Scoop.it</dc:creator>
		<pubDate>Tue, 22 Nov 2011 17:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=218#comment-835</guid>
		<description>[...]  Jakob Korherr&#039;s Blog &#187; JSF value expression injection vulnerability  [...]</description>
		<content:encoded><![CDATA[<p>[...]  Jakob Korherr&#39;s Blog &raquo; JSF value expression injection vulnerability  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Validation errors and bean updates von Michael Heinen</title>
		<link>http://www.jakobk.com/2010/06/validation-errors-and-bean-updates/comment-page-1/#comment-787</link>
		<dc:creator>Michael Heinen</dc:creator>
		<pubDate>Tue, 18 Oct 2011 15:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=107#comment-787</guid>
		<description>Hi Jakob,
I just stumbled over this entry today and faced this problem also.
I solved it in combination with a phase listener and a customized view handler:
- A request scope flag is set in a phase listener if response is rendered immediately caused by a validation or conversion error.
- The ViewHandler checks after(!) rendering this response but before state saving whether this flag is set. If it is set, the submitted input component, the input components of the submitted region or all input components of the submitted view are reset.

So the resets are done in error case only. The tree visits are not so expensive in case of an ajax request with richfaces. The id of the submitted component (ajaxSingle=true) or the id of submitted region is in the request parameters.

Out of the box support for this would be nice. I do not see any reason to keep the old values after the response with the invalid values is rendered again.

Cheers,
Michael</description>
		<content:encoded><![CDATA[<p>Hi Jakob,<br />
I just stumbled over this entry today and faced this problem also.<br />
I solved it in combination with a phase listener and a customized view handler:<br />
- A request scope flag is set in a phase listener if response is rendered immediately caused by a validation or conversion error.<br />
- The ViewHandler checks after(!) rendering this response but before state saving whether this flag is set. If it is set, the submitted input component, the input components of the submitted region or all input components of the submitted view are reset.</p>
<p>So the resets are done in error case only. The tree visits are not so expensive in case of an ajax request with richfaces. The id of the submitted component (ajaxSingle=true) or the id of submitted region is in the request parameters.</p>
<p>Out of the box support for this would be nice. I do not see any reason to keep the old values after the response with the invalid values is rendered again.</p>
<p>Cheers,<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu How to wrap a ValueExpression in EL 1.0 and 2.2 von somebody</title>
		<link>http://www.jakobk.com/2010/12/how-to-wrap-a-valueexpression-in-el-1-0-and-2-2/comment-page-1/#comment-690</link>
		<dc:creator>somebody</dc:creator>
		<pubDate>Mon, 25 Jul 2011 15:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=170#comment-690</guid>
		<description>If I remember the the jvm spec correctly than this is not covered by the spec and therefore might not work on certain other jvm/classloader impls (ibm, jrockit, openjdk). Take a look here #7, 12.4.2 http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44459
I would be rather defensive using such tricks...</description>
		<content:encoded><![CDATA[<p>If I remember the the jvm spec correctly than this is not covered by the spec and therefore might not work on certain other jvm/classloader impls (ibm, jrockit, openjdk). Take a look here #7, 12.4.2 <a href="http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44459" rel="nofollow">http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44459</a><br />
I would be rather defensive using such tricks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu JSF 2.0: View parameters von Stateless vs Stateful JSF view parameters &#124; J-Development</title>
		<link>http://www.jakobk.com/2010/04/jsf-2-0-view-parameters/comment-page-1/#comment-614</link>
		<dc:creator>Stateless vs Stateful JSF view parameters &#124; J-Development</dc:creator>
		<pubDate>Sun, 03 Jul 2011 17:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=82#comment-614</guid>
		<description>[...] otherwise the initial URL parameter would be &#8216;lost&#8217; after the first postback. See e.g. JSF 2.0: View parameters, where the author seems really happy with this behavior: The UIViewParameter component also stores [...]</description>
		<content:encoded><![CDATA[<p>[...] otherwise the initial URL parameter would be &#8216;lost&#8217; after the first postback. See e.g. JSF 2.0: View parameters, where the author seems really happy with this behavior: The UIViewParameter component also stores [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Validation errors and bean updates von Jakob Korherr</title>
		<link>http://www.jakobk.com/2010/06/validation-errors-and-bean-updates/comment-page-1/#comment-551</link>
		<dc:creator>Jakob Korherr</dc:creator>
		<pubDate>Mon, 06 Jun 2011 22:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=107#comment-551</guid>
		<description>Hi Pat,

It depends. Calling resetValue() itself is very cheap, but, for example, performing a full tree visit to reach every input component (in order to call resetValue()) is pretty expensive.

Using a PreRenderComponentEvent is a very good idea! This is just as good as binding the components to a request-scoped binding bean and accessing them in the setter(s), I guess!

Regards,
Jakob</description>
		<content:encoded><![CDATA[<p>Hi Pat,</p>
<p>It depends. Calling resetValue() itself is very cheap, but, for example, performing a full tree visit to reach every input component (in order to call resetValue()) is pretty expensive.</p>
<p>Using a PreRenderComponentEvent is a very good idea! This is just as good as binding the components to a request-scoped binding bean and accessing them in the setter(s), I guess!</p>
<p>Regards,<br />
Jakob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu Validation errors and bean updates von PatMey</title>
		<link>http://www.jakobk.com/2010/06/validation-errors-and-bean-updates/comment-page-1/#comment-550</link>
		<dc:creator>PatMey</dc:creator>
		<pubDate>Mon, 06 Jun 2011 19:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=107#comment-550</guid>
		<description>Hey Jakob, 

Is it a &quot;performance killer&quot; to perform reset values in PhaseListener as you wrote? You can use for that a PreRenerComponent Event at setting the value.
Greets,
Pat</description>
		<content:encoded><![CDATA[<p>Hey Jakob, </p>
<p>Is it a &#8220;performance killer&#8221; to perform reset values in PhaseListener as you wrote? You can use for that a PreRenerComponent Event at setting the value.<br />
Greets,<br />
Pat</p>
]]></content:encoded>
	</item>
	<item>
		<title>Kommentar zu create annotation instances at runtime von Bob McWhirter</title>
		<link>http://www.jakobk.com/2010/09/create-annotation-instances-at-runtime/comment-page-1/#comment-456</link>
		<dc:creator>Bob McWhirter</dc:creator>
		<pubDate>Tue, 29 Mar 2011 01:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jakobk.com/?p=146#comment-456</guid>
		<description>We&#039;re going to be using the AnnotationInstanceProvider within TorqueBox, since it&#039;s rather difficult to create annotations from Ruby.

Thanks, Dan!</description>
		<content:encoded><![CDATA[<p>We&#8217;re going to be using the AnnotationInstanceProvider within TorqueBox, since it&#8217;s rather difficult to create annotations from Ruby.</p>
<p>Thanks, Dan!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

