Skip to content

Commit 2299333

Browse files
committed
Reverted accidently dropped detected_at value of csv report file. v2.4.2
1 parent 8aaa0e5 commit 2299333

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

+8-8
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-4104 (log4j 1.x), and CVE-2021-42550 (logback 0.9-1.2.7) vulnerabilities.
44

55
### Download
6-
* [log4j2-scan 2.4.1 (Windows x64, 7z)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1-win64.7z)
7-
* [log4j2-scan 2.4.1 (Windows x64, zip)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1-win64.zip)
6+
* [log4j2-scan 2.4.2 (Windows x64, 7z)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.2-win64.7z)
7+
* [log4j2-scan 2.4.2 (Windows x64, zip)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.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.4.1 (Linux x64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1-linux.tar.gz)
12-
* [log4j2-scan 2.4.1 (Linux aarch64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1-linux-aarch64.tar.gz)
11+
* [log4j2-scan 2.4.2 (Linux x64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.2-linux.tar.gz)
12+
* [log4j2-scan 2.4.2 (Linux aarch64)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.2-linux-aarch64.tar.gz)
1313
* If native executable doesn't work, use the JAR instead. 32bit is not supported.
14-
* [log4j2-scan 2.4.1 (Mac OS)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1-darwin.tar.gz)
15-
* [log4j2-scan 2.4.1 (Any OS, 20KB)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.1/logpresso-log4j2-scan-2.4.1.jar)
14+
* [log4j2-scan 2.4.2 (Mac OS)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.2-darwin.tar.gz)
15+
* [log4j2-scan 2.4.2 (Any OS, 20KB)](https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.4.2/logpresso-log4j2-scan-2.4.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)
@@ -22,7 +22,7 @@ Just run log4j2-scan.exe or log4j2-scan with target directory path. The logpress
2222

2323
Usage
2424
```
25-
Logpresso CVE-2021-44228 Vulnerability Scanner 2.4.1 (2021-12-21)
25+
Logpresso CVE-2021-44228 Vulnerability Scanner 2.4.2 (2021-12-21)
2626
Usage: log4j2-scan [--scan-log4j1] [--fix] target_path1 target_path2
2727
2828
-f [config_file_path]
@@ -87,7 +87,7 @@ On Linux
8787
```
8888
On UNIX (AIX, Solaris, and so on)
8989
```
90-
java -jar logpresso-log4j2-scan-2.4.1.jar [--fix] target_path
90+
java -jar logpresso-log4j2-scan-2.4.2.jar [--fix] target_path
9191
```
9292

9393
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. In most environments, JNDI lookup feature will not be used. However, you must use this option at your own risk. Depending the Operating System:

pom.xml

+1-1
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.4.1</version>
9+
<version>2.4.2</version>
1010
<packaging>jar</packaging>
1111
<name>Logpresso Log4j2 Scanner</name>
1212

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import com.logpresso.scanner.utils.ZipUtils;
1616

1717
public class Log4j2Scanner {
18-
public static final String VERSION = "2.4.1";
18+
public static final String VERSION = "2.4.2";
1919
public static final String RELEASE_DATE = "2021-12-21";
2020
public static final String BANNER = "Logpresso CVE-2021-44228 Vulnerability Scanner " + VERSION + " (" + RELEASE_DATE + ")";
2121

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public Date getReportTime() {
8080

8181
public String getCsvLine() {
8282
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
83-
return String.format("\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"%n", path.getAbsolutePath(), entry, product,
83+
return String.format("\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"%n", path.getAbsolutePath(), entry, product,
8484
version, cve, status, fixed ? "FIXED" : "", df.format(reportTime));
8585
}
8686
}

0 commit comments

Comments
 (0)