obsidiandynamics / kafdrop

Kafka Web UI
Apache License 2.0
5.59k stars 844 forks source link

Critical Vulnerabilities found in release 4.0.2 #695

Open ricardoredondo opened 2 weeks ago

ricardoredondo commented 2 weeks ago

While working with Kafdrop a few High and Critical vulnerabilities were found. Is it possible to get these vulnerabilities addressed

What vulnerabilities were found:

How to retrieve the list of vulnerabilities: For this I used Trivy. Which is a popular open source security scanner for Vulnerability Trivy installation: https://aquasecurity.github.io/trivy/v0.57/getting-started/installation/ How to run it:

Looking fw an update in this.

Bert-R commented 2 weeks ago

Do you mind running the same scan on the latest snapshot build? Then we know whether it would help to release the current snapshot.

nickmarden commented 14 hours ago

I fired up the kafdrop-4.0.3-SNAPSHOT.jar image, copied the jar over to my local filesystem, and unpacked the jar contents for scanning:

[Nicks-Prodigious-MacBook-Pro]➜  tmp ls -al
total 0
drwxr-xr-x    5 nick  staff   160 Nov 22 13:07 .
drwxr-x---+ 182 nick  staff  5824 Nov 22 13:08 ..
drwxr-xr-x    6 nick  staff   192 Nov 22 12:12 BOOT-INF
drwxr-xr-x    7 nick  staff   224 Nov 22 12:12 META-INF
drwxr-xr-x    3 nick  staff    96 Jan 31  1980 org

[Nicks-Prodigious-MacBook-Pro]➜  tmp trivy rootfs . --scanners vuln --severity HIGH,CRITICAL
2024-11-22T13:08:10.400-0500    INFO    Vulnerability scanning is enabled
2024-11-22T13:08:10.427-0500    INFO    Number of language-specific files: 1
2024-11-22T13:08:10.427-0500    INFO    Detecting jar vulnerabilities...

[Nicks-Prodigious-MacBook-Pro]➜  tmp trivy rootfs . --scanners vuln
2024-11-22T13:08:16.572-0500    INFO    Vulnerability scanning is enabled
2024-11-22T13:08:16.602-0500    INFO    Number of language-specific files: 1
2024-11-22T13:08:16.602-0500    INFO    Detecting jar vulnerabilities...

Which might show that the new version solves the issue ? But I'm not sure. cc @ricardoredondo