Skip to content

[fix][build] Resolve OWASP Dependency Check false positives - #19120

Merged
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-suppress-owasp-dep-check-false-positives
Jan 2, 2023
Merged

lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-suppress-owasp-dep-check-false-positives

Conversation

@lhotari

@lhotari lhotari commented Jan 2, 2023

Copy link
Copy Markdown
Member

Motivation

OWASP Dependency Check is failing with some false positives:

One or more dependencies were identified with known vulnerabilities in Pulsar :: Distribution :: Server:

commons-cli-1.5.0.jar (pkg:maven/commons-cli/[email protected], cpe:2.3:a:apache:commons_net:1.5.0:*:*:*:*:*:*:*) : CVE-2021-37533
commons-codec-1.15.jar (pkg:maven/commons-codec/[email protected], cpe:2.3:a:apache:commons_net:1.15:*:*:*:*:*:*:*) : CVE-2021-37533
commons-compress-1.21.jar (pkg:maven/org.apache.commons/[email protected], cpe:2.3:a:apache:commons_compress:1.21:*:*:*:*:*:*:*, cpe:2.3:a:apache:commons_net:1.21:*:*:*:*:*:*:*) : CVE-2021-37533
commons-configuration-1.10.jar (pkg:maven/commons-configuration/[email protected], cpe:2.3:a:apache:commons_configuration:1.10:*:*:*:*:*:*:*, cpe:2.3:a:apache:commons_net:1.10:*:*:*:*:*:*:*) : CVE-2021-37533
commons-io-2.8.0.jar (pkg:maven/commons-io/[email protected], cpe:2.3:a:apache:commons_io:2.8.0:*:*:*:*:*:*:*, cpe:2.3:a:apache:commons_net:2.8.0:*:*:*:*:*:*:*) : CVE-2021-37533
commons-lang-2.6.jar (pkg:maven/commons-lang/[email protected], cpe:2.3:a:apache:commons_net:2.6:*:*:*:*:*:*:*) : CVE-2021-37533
commons-logging-1.1.1.jar (pkg:maven/commons-logging/[email protected], cpe:2.3:a:apache:commons_net:1.1.1:*:*:*:*:*:*:*) : CVE-2021-37533
commons-text-1.10.0.jar (pkg:maven/org.apache.commons/[email protected], cpe:2.3:a:apache:commons_net:1.10.0:*:*:*:*:*:*:*, cpe:2.3:a:apache:commons_text:1.10.0:*:*:*:*:*:*:*) : CVE-2021-37533
http-server-4.15.3.jar (pkg:maven/org.apache.bookkeeper.http/[email protected], cpe:2.3:a:apache:apache_http_server:4.15.3:*:*:*:*:*:*:*, cpe:2.3:a:apache:bookkeeper:4.15.3:*:*:*:*:*:*:*) : CVE-[201](https://github.com/apache/pulsar/actions/runs/3819386174/jobs/6496901705#step:8:202)0-1151
jcl-over-slf4j-1.7.32.jar (pkg:maven/org.slf4j/[email protected], cpe:2.3:a:apache:commons_net:1.7.32:*:*:*:*:*:*:*) : CVE-[202](https://github.com/apache/pulsar/actions/runs/3819386174/jobs/6496901705#step:8:203)1-37533
vertx-http-server-4.15.3.jar (pkg:maven/org.apache.bookkeeper.http/[email protected], cpe:2.3:a:apache:apache_http_server:4.15.3:*:*:*:*:*:*:*, cpe:2.3:a:apache:bookkeeper:4.15.3:*:*:*:*:*:*:*) : CVE-2010-1151

example: https://github.com/apache/pulsar/actions/runs/3819386174/jobs/6496901705#step:8:194

Modifications

Add suppressions to OWASP Dependency Check configuration.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 2.12.0 milestone Jan 2, 2023
@lhotari lhotari self-assigned this Jan 2, 2023
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 2, 2023
@lhotari
lhotari requested a review from nodece January 2, 2023 10:55
@codecov-commenter

codecov-commenter commented Jan 2, 2023 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.40%. Comparing base (e194c01) to head (e35089d).
⚠️ Report is 3033 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #19120      +/-   ##
============================================
- Coverage     47.36%   45.40%   -1.96%     
- Complexity    10714    10938     +224     
============================================
  Files           712      772      +60     
  Lines         69598    74370    +4772     
  Branches       7470     8002     +532     
============================================
+ Hits          32962    33769     +807     
- Misses        32928    36799    +3871     
- Partials       3708     3802      +94     
Flag Coverage Δ
unittests 45.40% <ø> (-1.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 94 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lhotari
lhotari merged commit f912fb3 into apache:master Jan 2, 2023
lhotari added a commit that referenced this pull request Jan 2, 2023
lhotari added a commit that referenced this pull request Jan 2, 2023
lhotari added a commit that referenced this pull request Jan 2, 2023
lhotari added a commit that referenced this pull request Jan 2, 2023
@lhotari lhotari added cherry-picked/branch-2.8 Archived: 2.8 is end of life release/2.8.5 labels Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants