Skip to content

Commit d5f379b

Browse files
CVE-2025-8662 Tampering with request parameters may modify OpenAM’s internal cache, causing the SAML IdP to not function properly (#920)
Co-authored-by: Tsujiguchi Takaya <[email protected]>
1 parent 5a7e383 commit d5f379b

File tree

1 file changed

+6
-4
lines changed
  • openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile

1 file changed

+6
-4
lines changed

openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile/IDPSSOUtil.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*
2727
* Portions Copyrighted 2010-2016 ForgeRock AS.
2828
* Portions Copyrighted 2013 Nomura Research Institute, Ltd
29+
* Portions Copyrighted 2025 OSSTech Corporation
2930
*/
3031

3132
package com.sun.identity.saml2.profile;
@@ -2738,10 +2739,11 @@ private static String getWriterURL(String realm,
27382739
return null;
27392740
}
27402741

2741-
// retain in the idpCOTList the intersection of two lists
2742-
idpCOTList.retainAll(spCOTList);
2743-
for (int i = 0; i < idpCOTList.size(); i++) {
2744-
String cotName = (String) idpCOTList.get(i);
2742+
// retain in the commonCOTList the intersection of two lists
2743+
List commonCOTList = new ArrayList<>(idpCOTList);
2744+
commonCOTList.retainAll(spCOTList);
2745+
for (int i = 0; i < commonCOTList.size(); i++) {
2746+
String cotName = (String) commonCOTList.get(i);
27452747

27462748
CircleOfTrustDescriptor cotDescriptor =
27472749
cotManager.getCircleOfTrust(realm, cotName);

0 commit comments

Comments
 (0)