CWE
310 287
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2010-2057

First published: Thu Jun 10 2010(Updated: )

Quoting the upstream bug report [1]: Both myfaces and mojarra only encrypt the state. What is missing is add a message authentication code (MAC) to the encryption to prevent padding oracle attack. The objective is detect if the received view state has been modified and do not process it, throwing ViewExpiredException. The problem can be solved if users change to server side state saving, because on the view state only a identifier is sent and no changes on the component tree could be done with this configuration. The proposed solution was add this new web-config params: org.apache.myfaces.MAC_ALGORITHM : Indicate the algorithm used to calculate the Message Authentication Code that is added to the view state. org.apache.myfaces.MAC_SECRET : Define the initialization code that are used to initialize the secret key used on the Message Authentication Code algorithm. org.apache.myfaces.MAC_SECRET.CACHE : If is set to "false", the secret key used for MAC algorithm is not cached. This is used when the returned SecretKey for mac algorithm is not thread safe. It was unified security configuration in all branches to works the same. That means, it was included in 1.1.x the property org.apache.myfaces.USE_ENCRYPTION. Now, if an error occur when the state is encrypted/decrypted, a ViewExpiredException is thrown, but the real exception is logged, to hide information that could be useful to non developers. This was corrected upstream in versions 1.1.8, 1.2.9, and 2.0.1. It has also been assigned the name <a href="https://access.redhat.com/security/cve/CVE-2010-2057">CVE-2010-2057</a>. [1] <a href="https://issues.apache.org/jira/browse/MYFACES-2749">https://issues.apache.org/jira/browse/MYFACES-2749</a> I believe the following is the commit that corrects this flaw, but will need to be verified: <a href="http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java?r1=943327&amp;r2=951801">http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java?r1=943327&amp;r2=951801</a>

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Apache MyFaces=1.1.1
Apache MyFaces=1.1.6
Apache MyFaces=1.1.3
Apache MyFaces=1.1.5
Apache MyFaces=1.1.0
Apache MyFaces=1.1.7
Apache MyFaces=1.1.4
Apache MyFaces=1.1.2
Apache MyFaces=1.2.5
Apache MyFaces=1.2.3
Apache MyFaces=1.2.2
Apache MyFaces=1.2.6
Apache MyFaces=1.2.8
Apache MyFaces=1.2.7
Apache MyFaces=1.2.4
Apache MyFaces=2.0.0
maven/org.apache.myfaces.core:myfaces-impl>=2.0.0<2.0.1
2.0.1
maven/org.apache.myfaces.core:myfaces-impl>=1.2.0<1.2.9
1.2.9
maven/org.apache.myfaces.core:myfaces-impl>=1.1.0<1.1.8
1.1.8
maven/org.apache.myfaces.shared:myfaces-shared-core>=2.0.0<2.0.1
2.0.1
maven/org.apache.myfaces.shared:myfaces-shared-core>=1.2.0<1.2.9
1.2.9
maven/org.apache.myfaces.shared:myfaces-shared-core>=1.1.0<1.1.8
1.1.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203