Bug 829560 (CVE-2012-2672) - CVE-2012-2672 Mojarra: deployed web applications can read FacesContext from other applications under certain conditions
Summary: CVE-2012-2672 Mojarra: deployed web applications can read FacesContext from o...
Status: CLOSED ERRATA
Alias: CVE-2012-2672
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20120601,reported=2...
Keywords: Security
Depends On: 830023 830024
Blocks: 829561 881519
TreeView+ depends on / blocked
 
Reported: 2012-06-07 03:12 UTC by David Jorm
Modified: 2019-06-08 19:09 UTC (History)
3 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2013-08-19 05:50:18 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker JBPAPP-9313 Major Closed CVE-2012-2672 Mojarra: deployed web applications can read FacesContext from other applications under certain conditions 2014-08-25 08:07:20 UTC
Red Hat Product Errata RHSA-2012:1591 normal SHIPPED_LIVE Important: JBoss Enterprise Application Platform 6.0.1 update 2012-12-19 03:19:29 UTC
Red Hat Product Errata RHSA-2012:1592 normal SHIPPED_LIVE Important: JBoss Enterprise Application Platform 6.0.1 update 2012-12-19 03:31:01 UTC
Red Hat Product Errata RHSA-2012:1594 normal SHIPPED_LIVE Important: JBoss Enterprise Application Platform 6.0.1 update 2012-12-19 03:52:56 UTC

Description David Jorm 2012-06-07 03:12:55 UTC
It was found that in Mojarra, the FacesContext that is made available during application startup is held in a ThreadLocal. The reference is not properly cleaned up in all cases. As a result, if a JSF WAR calls FacesContext.getCurrentInstance() during application startup, another WAR can get access to the leftover context and thus get access to the other WAR's resources.

Comment 1 David Jorm 2012-06-07 03:19:55 UTC
Upstream bug: http://java.net/jira/browse/JAVASERVERFACES-2436

Comment 2 Arun Babu Neelicattu 2012-06-08 02:47:21 UTC
This issue only affects EAP6/AS7. Older versions are not affected.

Comment 4 David Jorm 2012-06-08 02:54:29 UTC
Created jboss-jsf-2.1-api tracking bugs for this issue

Affects: fedora-17 [bug 830024]

Comment 6 David Jorm 2012-07-12 01:16:20 UTC
This issue has been resolved upstream in Mojarra 2.1.11 and 2.2-m05. A patch and updated JARs are attached to the upstream bug: http://java.net/jira/browse/JAVASERVERFACES-2436

Comment 8 David Jorm 2012-08-06 04:32:32 UTC
The upstream Mojarra fix for this issue introduced a class loader leak. An updated patch that resolves both the security issue and the class loader leak will be available in Mojarra 2.1.12.

Comment 12 David Jorm 2012-10-22 21:28:07 UTC
Acknowledgements:

This issue was discovered by Marek Schmidt and Stan Silvert of Red Hat.

Comment 16 errata-xmlrpc 2012-12-18 22:21:34 UTC
This issue has been addressed in following products:

  JBEAP 6 for RHEL 5

Via RHSA-2012:1591 https://rhn.redhat.com/errata/RHSA-2012-1591.html

Comment 17 errata-xmlrpc 2012-12-18 22:33:26 UTC
This issue has been addressed in following products:

  JBEAP 6 for RHEL 6

Via RHSA-2012:1592 https://rhn.redhat.com/errata/RHSA-2012-1592.html

Comment 18 errata-xmlrpc 2012-12-18 22:53:24 UTC
This issue has been addressed in following products:

  JBoss Enterprise Application Platform 6.0.1

Via RHSA-2012:1594 https://rhn.redhat.com/errata/RHSA-2012-1594.html


Note You need to log in before you can comment on or make changes to this bug.