From 4c3b96e4cd8c80d31887c333b110e052f6a600aa Mon Sep 17 00:00:00 2001 From: Jacek Lewandowski Date: Thu, 7 Dec 2023 12:07:24 +0100 Subject: [PATCH] Updated the OWASP plugin to 9.0.5 and refactored dependency checks Configured OWASP database to use caching and NVD key. Properties can be configured in ~/.ant/build.properties and define both the key and the storage location Patch by Jacek Lewandowski; reviewed by Maxim Muzafarov, Stefan Miklosovic for CASSANDRA-19146 --- .build/build-owasp.xml | 89 +++++++++++++++--------- .build/dependency-check-suppressions.xml | 26 +------ build.xml | 1 + 3 files changed, 59 insertions(+), 57 deletions(-) diff --git a/.build/build-owasp.xml b/.build/build-owasp.xml index a792730fb9..e14f310b15 100644 --- a/.build/build-owasp.xml +++ b/.build/build-owasp.xml @@ -16,30 +16,51 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - + + + + + + - - + + - + unless="dependency-check-ant.archive.present"> - Downloading OWASP Dependency checks ... - - - - - - + + - + + + + + + + + + Please set the nvd.api.key property to your NVD API key. It is recommended to put that property into your + ~/.ant/build.properties file. You can get your API key from https://nvd.nist.gov/developers/request-an-api-key + + + + Since the NVD database is pretty large, you should consider storing it in some persistent location to reuse + it between builds. You can do that by setting the nvd.data.dir property to a directory of your choice, + such as ~/.cache/ant/owasp/database for Linux or ~/Library/Caches/Ant/owasp/database for MacOS. + Putting that property into your ~/.ant/build.properties file is recommended. + + + + @@ -52,35 +73,39 @@ - - - + + + + + + + + + diff --git a/.build/dependency-check-suppressions.xml b/.build/dependency-check-suppressions.xml index 04a74bb4b2..5df9d6e7ce 100644 --- a/.build/dependency-check-suppressions.xml +++ b/.build/dependency-check-suppressions.xml @@ -20,17 +20,10 @@ https://jeremylong.github.io/DependencyCheck/general/suppression.html --> - - - ^pkg:maven/org\.xerial\.snappy/snappy\-java@.*$ - CVE-2023-34453 - CVE-2023-34454 - CVE-2023-34455 - ^pkg:maven/org\.yaml/snakeyaml@.*$ - CVE-2023-2251 + CVE-2022-38752 CVE-2022-38751 CVE-2022-38750 @@ -38,8 +31,6 @@ CVE-2022-25857 CVE-2022-38749 CVE-2022-1471 - CVE-2022-3064 - CVE-2021-4235 CVE-2017-18640 @@ -58,7 +49,6 @@ CVE-2021-43797 CVE-2022-24823 CVE-2022-41881 - CVE-2022-41915 CVE-2023-34462 CVE-2023-44487 @@ -84,27 +74,13 @@ ^pkg:maven/com\.thinkaurelius\.thrift/thrift-server@.*$ CVE-2015-3254 CVE-2016-5397 - CVE-2018-1320 - CVE-2018-11798 CVE-2019-0205 - - ^pkg:maven/org\.codehaus\.jackson/jackson\-mapper\-asl@.*$ CVE-2017-7525 - CVE-2017-15095 - CVE-2017-17485 - CVE-2018-5968 - CVE-2018-14718 - CVE-2018-1000873 - CVE-2018-7489 CVE-2019-10172 - CVE-2019-14540 - CVE-2019-14893 - CVE-2019-16335 - CVE-2019-17267 diff --git a/build.xml b/build.xml index ae04bd894f..b025a6e15b 100644 --- a/build.xml +++ b/build.xml @@ -30,6 +30,7 @@ +