question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Additional output of secure log4j Versions

See original GitHub issue

Hi,

the current implementation does not output secure log4j versions (for example 2.17.1) to the output files (for example csv) and to the console. After investigation in the code, it seems, there are these code fragments in file Detector.java, that prevent this:

...
if (isVulnerableLog4j2(Version.parse(log4j2Version))) {
					printDetectionForLog4j2(jarFile, pathChain, log4j2Version, log4j2Mitigated, false);

...
vulnerable = isVulnerableLog4j1(Version.parse(log4j1Version));
					if (vulnerable)
						printDetectionForLog4j1(jarFile, pathChain, log4j1Version, log4j1Mitigated);
...

Is it possible to ouput this versions as not vulnerable too (for example with a additional command line switch)?

Background: Output of not vulnerable versions is needed for build up a history in splunk.

Thank you

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
xeraphcommented, Feb 13, 2022

@OrbbQ3 Would you test v3.0.1 release? You can use --report-patch option.

0reactions
ChKempercommented, Feb 15, 2022

Hi @OrbbQ3,

I’ve done a short fix for this: #278

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Log4j Security Vulnerabilities
This page lists all the security vulnerabilities fixed in released versions of Apache Log4j 2. Each vulnerability is given a security impact ...
Read more >
What is Apache Log4J Vulnerability and How to Prevent It?
Log4Shell is a severe critical vulnerability affecting many versions of the Apache Log4j application. The vulnerability allows unauthenticated remote code ...
Read more >
Additional Guidance Regarding the Log4j Vulnerability - Pitt IT
Log4j version 1.x is not directly vulnerable, because it does not offer a JNDI look up mechanism. However, Log4j 1.x comes with JMSAppender, ......
Read more >
Apache Log4j : List of security vulnerabilities - CVE Details
# CVE ID CWE ID Vulnerability Type(s) Publish Date Update Date Score Gaine... 1 CVE‑2022‑23307 502 2022‑01‑18 2022‑07‑25 9.0 None 2 CVE‑2022‑23305 89 Sql 2022‑01‑18...
Read more >
Mitigating Log4Shell and Other Log4j-Related Vulnerabilities
The Cybersecurity and Infrastructure Security Agency (CISA), ... In response, Apache released Log4j version 2.16.0 (Java 8).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found