From d2a3322b280c408184cfe8618375b47cef09657a Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Tue, 31 Oct 2023 19:07:35 +0100 Subject: [PATCH] dep: Update slf4j to 1.7.36 and switch from log4j1 to reload4j Replace log4j 1.2.17 with reload4j 1.2.25. log4j 1.x was caught in the fire of the Log4Shell vulnerability, even though the 1.x line was not affected by the vulnerability. Still, this looks bad when it shows up in security scanners even though it doesn't mean it has the Log4Shell vulnerability. Switch to reload4j instead. This is a drop-in replacement of log4j. Actually, it is log4j rebooted by the same author. The reload4j 1.x line fixes security issues that have since surfaced. At the same time we update to the latest slf4j version, which also switched to reload4j for the log4j12 line. --- .classpath | 6 +++--- build.moxie | 6 +++--- gitblit.iml | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.classpath b/.classpath index 6dd5eace..823a61f2 100644 --- a/.classpath +++ b/.classpath @@ -18,9 +18,9 @@ - - - + + + diff --git a/build.moxie b/build.moxie index e410855b..efbf7d5e 100644 --- a/build.moxie +++ b/build.moxie @@ -106,7 +106,7 @@ repositories: central, eclipse-snapshots, eclipse, gitblit # Convenience properties for dependencies properties: { jetty.version : 9.4.49.v20220914 - slf4j.version : 1.7.29 + slf4j.version : 1.7.36 wicket.version : 1.4.22 lucene.version : 5.5.2 jgit.version : 4.11.9.201909030838-r @@ -137,9 +137,9 @@ dependencies: - compile 'com.google.inject.extensions:guice-servlet:${guice-servlet.version}' :war - compile 'com.google.guava:guava:32.1.3-jre' :war :fedclient - compile 'com.intellij:annotations:12.0' :war -- compile 'log4j:log4j:1.2.17' :war :fedclient :manager +- compile 'ch.qos.reload4j:reload4j:1.2.25' :war :fedclient :manager - compile 'org.slf4j:slf4j-api:${slf4j.version}' :war :fedclient :manager -- compile 'org.slf4j:slf4j-log4j12:${slf4j.version}' :war :fedclient :manager +- compile 'org.slf4j:slf4j-reload4j:${slf4j.version}' :war :fedclient :manager - compile 'com.sun.mail:javax.mail:1.5.6' :war - compile 'javax.servlet:javax.servlet-api:3.1.0' :fedclient - compile 'org.eclipse.jetty:jetty-servlet:${jetty.version}' @jar diff --git a/gitblit.iml b/gitblit.iml index 85756ae8..20b42cee 100644 --- a/gitblit.iml +++ b/gitblit.iml @@ -145,35 +145,35 @@ - + - + - + - + - + - + - + - + - + -- 2.39.5