Skip to content

Commit 6d7dfff

Browse files
committed
Added reload4j vulnerability detection, Added md5 hash for shaded newrelic jar. v2.9.2
1 parent f9b419e commit 6d7dfff

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
log4j2-scan is a single binary command-line tool for CVE-2021-44228 vulnerability scanning and mitigation patch. It also supports nested JAR file scanning and patch. It also detects CVE-2021-45046 (log4j 2.15.0), CVE-2021-45105 (log4j 2.16.0), CVE-2021-44832 (log4j 2.17.0), CVE-2021-4104, CVE-2019-17571, CVE-2017-5645, CVE-2020-9488, CVE-2022-23302, CVE-2022-23305, CVE-2022-23307 (log4j 1.x), and CVE-2021-42550 (logback 0.9-1.2.7) vulnerabilities.
44

55
### Download
6-
* [log4j2-scan 2.9.1 (Windows x64, 7z)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1-win64.7z)
7-
* [log4j2-scan 2.9.1 (Windows x64, zip)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1-win64.zip)
6+
* [log4j2-scan 2.9.2 (Windows x64, 7z)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2-win64.7z)
7+
* [log4j2-scan 2.9.2 (Windows x64, zip)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2-win64.zip)
88
* If you get `VCRUNTIME140.dll not found` error, install [Visual C++ Redistributable](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170).
99
* If native executable doesn't work, use the JAR instead. 32bit is not supported.
1010
* 7zip is available from www.7zip.org, and is open source and free.
11-
* [log4j2-scan 2.9.1 (Linux x64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1-linux.tar.gz)
12-
* [log4j2-scan 2.9.1 (Linux aarch64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1-linux-aarch64.tar.gz)
11+
* [log4j2-scan 2.9.2 (Linux x64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2-linux.tar.gz)
12+
* [log4j2-scan 2.9.2 (Linux aarch64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2-linux-aarch64.tar.gz)
1313
* If native executable doesn't work, use the JAR instead. 32bit is not supported.
14-
* [log4j2-scan 2.9.1 (Mac OS)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1-darwin.zip)
15-
* [log4j2-scan 2.9.1 (Any OS, 620KB)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.1/logpresso-log4j2-scan-2.9.1.jar)
14+
* [log4j2-scan 2.9.2 (Mac OS)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2-darwin.zip)
15+
* [log4j2-scan 2.9.2 (Any OS, 620KB)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.9.2/logpresso-log4j2-scan-2.9.2.jar)
1616

1717
### Build
1818
* [How to build Native Image](https://github.com/logpresso/CVE-2021-44228-Scanner/wiki/FAQ#how-to-build-native-image)
@@ -39,7 +39,7 @@ Just run log4j2-scan.exe or log4j2-scan with target directory path. The logpress
3939

4040
Usage
4141
```
42-
Logpresso CVE-2021-44228 Vulnerability Scanner 2.9.1 (2022-02-02)
42+
Logpresso CVE-2021-44228 Vulnerability Scanner 2.9.2 (2022-02-02)
4343
Usage: log4j2-scan [--scan-log4j1] [--fix] target_path1 target_path2
4444
4545
-f [config_file_path]
@@ -134,7 +134,7 @@ On Linux
134134
```
135135
On UNIX (AIX, Solaris, and so on)
136136
```
137-
java -jar logpresso-log4j2-scan-2.9.1.jar [--fix] target_path
137+
java -jar logpresso-log4j2-scan-2.9.2.jar [--fix] target_path
138138
```
139139

140140
If you add `--fix` option, this program will copy vulnerable original JAR file to .bak file, and create new JAR file without `org/apache/logging/log4j/core/lookup/JndiLookup.class` entry. All .bak files are archived into the single zip file which is named by `log4j2_scan_backup_yyyyMMdd_HHmmss.zip`, then deleted safely. In most environments, JNDI lookup feature will not be used. However, you must use this option at your own risk. You can easily restore original vulnerable JAR files using `--restore` option.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>com.logpresso</groupId>
88
<artifactId>log4j2-scanner</artifactId>
9-
<version>2.9.1</version>
9+
<version>2.9.2</version>
1010
<packaging>jar</packaging>
1111
<name>Logpresso Log4j2 Scanner</name>
1212

src/main/java/com/logpresso/scanner/Log4j2Scanner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
import com.logpresso.scanner.utils.ZipUtils;
3030

3131
public class Log4j2Scanner {
32-
public static final String VERSION = "2.9.1";
33-
public static final String RELEASE_DATE = "2022-02-03";
32+
public static final String VERSION = "2.9.2";
33+
public static final String RELEASE_DATE = "2022-02-06";
3434
public static final String BANNER = "Logpresso CVE-2021-44228 Vulnerability Scanner " + VERSION + " (" + RELEASE_DATE + ")";
3535

3636
private static final boolean isWindows = File.separatorChar == '\\';

0 commit comments

Comments
 (0)