diff --git a/tools/log4shell/constants/fs.go b/tools/log4shell/constants/fs.go index fe7214eba..f333d3c49 100644 --- a/tools/log4shell/constants/fs.go +++ b/tools/log4shell/constants/fs.go @@ -18,5 +18,6 @@ const ( JarFileExt = ".jar" WarFileExt = ".war" ZipFileExt = ".zip" + EarFileExt = ".ear" ClassFileExt = ".class" ) diff --git a/tools/log4shell/scan/scan.go b/tools/log4shell/scan/scan.go index 679613bfe..14856a45b 100644 --- a/tools/log4shell/scan/scan.go +++ b/tools/log4shell/scan/scan.go @@ -161,7 +161,7 @@ func (s *Log4jDirectoryScanner) scanFile( findings = []types.Finding{*finding} } return - case constants.JarFileExt, constants.WarFileExt: + case constants.JarFileExt, constants.WarFileExt, constants.ZipFileExt, constants.EarFileExt: if s.onlyScanArchives { finding := s.scanArchiveFile(path, file) if finding != nil {