Bug 598169 (CVE-2010-2087)

Summary: CVE-2010-2087 glassfish-jsf: Mojarra 1.2_14 and 2.0.2 XSS via state view
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bressers, djorm, fnasser
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://www.trustwave.com/spiderlabs/advisories/TWSL2010-001.txt
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-12 23:41:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 734565    

Description Jan Lieskovsky 2010-05-31 16:19:27 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2087 to
the following vulnerability:

Oracle Mojarra 1.2_14 and 2.0.2, as used in IBM WebSphere Application
Server, Caucho Resin, and other applications, does not properly handle
an unencrypted view state, which allows remote attackers to conduct
cross-site scripting (XSS) attacks or execute arbitrary Expression
Language (EL) statements via vectors that involve modifying the
serialized view object.

References:
  [1] http://www.blackhat.com/presentations/bh-dc-10/Byrne_David/BlackHat-DC-2010-Byrne-SGUI-slides.pdf
  [2] https://www.trustwave.com/spiderlabs/advisories/TWSL2010-001.txt
  [3] http://www.caucho.com/

Comment 1 David Jorm 2011-10-12 23:41:07 UTC
Statement:

This flaw affects applications using unencrypted client-side view states on Mojarra as shipped with JBoss Communications Platform 1.2.11 and 5.1.1, JBoss Enterprise Application Platform 4.2.0, 4.3.0 and 5.1.1, JBoss Enterprise BRMS Platform 5.1.0, JBoss Enterprise Portal Platform 4.3 and 5.1.1, JBoss Enterprise SOA Platform 4.2.0, 4.3.0 and 5.1.0, JBoss Enterprise Web Platform 5.1.1 and JBoss Web Framework Kit 1.1.0 and 1.2.0. Unencrypted client-side view states are fundamentally insecure and should not be used. Developers are advised to always enable encryption when creating JavaServer Faces (JSF) applications using client-side view state. When using the Mojarra implementation of JSF, this is achieved by adding the following snippet to the application's web.xml:
<context-param>
   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
   <param-value>client</param-value>
</context-param>
<env-entry>
   <env-entry-name>ClientStateSavingPassword</env-entry-name>
   <env-entry-type>java.lang.String</env-entry-type>
   <env-entry-value>INSERT_YOUR_PASSWORD</env-entry-value>
</env-entry>