A number of vulnerabilities were published for Apache Log4J version 2 impacting Log4j2 2.0-beta9 through to 2.17.0
Siteminder bundles Apache Log4J2 in a number of components
r12.8.4: Log4j 2.10.0
r12.8.5: Log4j 2.12.1
r12.8.6: Log4j 2.12.1
r12.8.6a: Log4j 2.17.1
r12.8.7: Log4j 2.17.2
r12.8.8: Log4j 2.20.0
Component: Siteminder Policy Server
Versions: r12.8.4 - r12.8.6
CVE-2021-45046
SEVERITY: High
DESCRIPTION: Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.
IMPACTED: Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1)
Remediated: Log4J 2.17.1
----------------------------------
CVE-2021-45046
SEVERITY: Critical
DESCRIPTION: It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.
IMPACTED: Apache Log4j2 versions 2.0-alpha1 through 2.15.0
Remediated: Log4J 2.17.1
----------------------------------
CVE-2021-45105
SEVERITY: Medium
DESCRIPTION: Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.
IMPACTED: Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1)
Remediated: Log4J 2.17.1
----------------------------------
CVE-2021-44832
SEVERITY: Medium
DESCRIPTION: Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4) are vulnerable to a remote code execution (RCE) attack when a configuration uses a JDBC Appender with a JNDI LDAP data source URI when an attacker has control of the target LDAP server. This issue is fixed by limiting JNDI data source names to the java protocol in Log4j2 versions 2.17.1, 2.12.4, and 2.3.2.
IMPACTED: Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4)
Remediated: Log4J 2.17.1
----------------------------------
SiteMinder does not use JDBC Appender with a data source referencing a JNDI URL. As a result, CVE-2021-44832 does not impact SiteMinder.
Siteminder r12.8.6a upgrades Log4j2 to 2.17.1
Siteminder r12.8.7 upgrades Log4J2 to 2.17.2
Siteminder r12.8.8 upgrades Log4J2 to 2.20.0
If you are running on r12.8.4 - r12.8.6 and would rather upgrade Log4J to 2.17.1/2.17.2 on an existing, supported version of Siteminder, you can following these instructions:
Manually Updating Log4J2 to 2.17.1/2.17.2 on Siteminder Policy Server r12.8.6 and older
1) Download either log4j 2.17.1 or 2.17.2 jar files from the following Apache repository links:
Log4j 2.17.1 Downloads
Log4j 2.17.2 Downloads
2) Back-up the following files
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-api-<existing_version>.jar
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-core-<existing_version>.jar
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-slf4j-impl-<existing_version>.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-api-<existing_version>.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-core-<existing_version>.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-slf4j-impl-<existing_version>.jar
3) Stop the Policy Server
4) Delete the existing log4j jar files (Listed in Step #2)
5) Place the new log4j 2.17.1 jars in the following locations:
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-api-2.17.1.jar
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-core-2.17.1.jar
<siteminder_install_Dir>\siteminder\bin\thirdparty\log4j-slf4j-impl-2.17.1.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-api-2.17.1.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-core-2.17.1.jar
<siteminder_install_Dir>\siteminder\bin\jars\log4j-slf4j-impl-2.17.1.jar
6) After copying the log4j jars into the <siteminder_install_Dir>\siteminder\bin\jars\ folder (as described in step #5), rename the jar file, removing version from the filenames.
Example:
log4j-api-2.17.1.jar -> log4j-api.jar
log4j-core-2.17.1.jar -> log4j-core.jar
log4j-slf4j-impl-2.17.1.jar -> log4j-slf4j-impl.jar
NOTE: This step is only done to the files in the \jars directory. NOT the \thirdparty directory.
7) Edit the JVMOptions.txt file at <siteminder_install_Dir>\siteminder\config\, update all the references of the existing log4j versions with the 2.17.1 version in the -Djava.class.path parameter, and save the changes.
EXAMPLE:
-Djava.class.path=<siteminder_install_Dir>/siteminder/resources;<siteminder_install_Dir>/siteminder/config/properties;<siteminder_install_Dir>/siteminder/bin/endorsed/jakarta.xml.bind-api.jar;<siteminder_install_Dir>/siteminder/bin/endorsed/jakarta.activation.jar;<siteminder_install_Dir>/siteminder/bin/jars/smbootstrap.jar;<siteminder_install_Dir>/siteminder/bin/thirdparty/log4j-api-2.17.1.jar;<siteminder_install_Dir>/siteminder/bin/thirdparty/log4j-core-2.17.1.jar;<siteminder_install_Dir>/siteminder/bin/thirdparty/log4j-slf4j2-impl-2.17.1.jar
8) Navigate to <siteminder_installation_home>/siteminder/bin, and update all the references of the existing log4j versions in the following tools:
smkeytool.bat/smkeytool.sh
smfedexport.bat/smfedexport.sh
smfedimport.bat/smfedimport.sh
9) Start Policy Server.
https://www.cisa.gov/news-events/news/apache-log4j-vulnerability-guidance
https://logging.apache.org/log4j/2.x/security.html
KB230270: CVE-2021-44228: SiteMinder Resolution to the Log4j Vulnerability
KB279552: Log4j 2.17.0 and older Vulnerability on Siteminder Policy Server r12.8.x
KB264006: Log4j 2.17.0 and older Vulnerability on Siteminder AdminUI r12.8.x
KB264008: Log4j 2.17.0 and older Vulnerability on Siteminder Access Gateway r12.8.x
KB264009: Log4j 2.17.0 and older Vulnerability on Siteminder SDK r12.8.x
KB264010: Log4j 2.17.0 and older Vulnerability on Siteminder r12.7 & r12.8 ASA Agents