From 978f64e36112c558a1f8273bb55cb2369e7afa38 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Mon, 27 Nov 2023 12:40:26 -0800 Subject: [PATCH] fix(CVE-2023-34062): fixing security issue with dependency reactor-netty-http: directory traversal vulnerability --- backend/pom.xml | 5 + legacy/pom.xml | 1019 +++++++++++++++++++++++---------------------- processor/pom.xml | 5 + 3 files changed, 522 insertions(+), 507 deletions(-) diff --git a/backend/pom.xml b/backend/pom.xml index 25bf861bed..e89afc9a79 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -159,6 +159,11 @@ snakeyaml 2.2 + + io.projectreactor.netty + reactor-netty-http + 1.1.13 + diff --git a/legacy/pom.xml b/legacy/pom.xml index 64ca4083d9..b449f0d217 100644 --- a/legacy/pom.xml +++ b/legacy/pom.xml @@ -1,511 +1,516 @@ - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 3.1.5 - - - - ca.bc.gov.nrs - nr-forest-client-legacy - 0.0.1 - nr-forest-client-legacy - Starting NR Forest Client Legacy for Oracle Access - - - - Apache License, Version 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - UTF-8 - UTF-8 - 17 - 17 - 3.10.1 - ${java.version} - ${java.version} - - true - false - true - true - - ${project.build.directory}/coverage-reports - - ${maven.build.timestamp} - yyyy-MM-dd HH:mm:ss - - 1.19.1 - - 5.9.1 - 1.9.1 - - ${project.version} - 5.2.3 - - - - - org.springframework.boot - spring-boot-starter-webflux - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.boot - spring-boot-starter-validation - - - org.springframework.boot - spring-boot-configuration-processor - - - org.springframework.boot - spring-boot-starter-data-r2dbc - - - - com.oracle.database.r2dbc - oracle-r2dbc - runtime - - - - org.springdoc - springdoc-openapi-starter-webflux-ui - 2.2.0 - - - - org.apache.commons - commons-lang3 - - - org.projectlombok - lombok - true - - - - org.dhatim - fastexcel - 0.15.7 - - - - org.springframework.boot - spring-boot-starter-test - test - - - io.projectreactor - reactor-test - test - - - org.junit.jupiter - junit-jupiter-params - test - - - org.testcontainers - testcontainers - test - - - org.testcontainers - junit-jupiter - test - - - org.testcontainers - r2dbc - test - - - org.testcontainers - oracle-xe - 1.19.1 - test - - - org.flywaydb - flyway-core - test - - - org.springframework - spring-jdbc - test - - - org.wiremock - wiremock-standalone - 3.0.3 - test - - - - - - - org.testcontainers - testcontainers-bom - ${testcontainers.version} - pom - import - - - org.yaml - snakeyaml - 2.2 - - - - - - - - org.graalvm.buildtools - native-maven-plugin - - - - org.springframework.boot - spring-boot-maven-plugin - - - - org.projectlombok - lombok - - - - - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.2.2 - - - integration-tests - - integration-test - verify - - - @{argLine} - false - ${skip.integration.tests} - - **/*IntegrationTest.java - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.2.2 - - @{argLine} - ${skip.unit.tests} - - **/*IntegrationTest.java - - - - cucumber.junit-platform.naming-strategy=long - - - - - - - org.jacoco - jacoco-maven-plugin - 0.8.11 - - ${jacoco.skip} - - **/configuration/** - **/exception/** - **/dto/** - **/entity/** - **/repository/** - **/*$*Builder* - **/BootApplication* - - - - - pre-unit-test - - prepare-agent - - - ${jacoco.output.data}/jacoco-ut.exec - - - - post-unit-test - test - - report - - - ${jacoco.output.data}/jacoco-ut.exec - ${jacoco.output.data}/jacoco-ut - - - - pre-integration-test - pre-integration-test - - prepare-agent-integration - - - ${jacoco.output.data}/jacoco-it.exec - - - - post-integration-test - post-integration-test - - report-integration - - - ${jacoco.output.data}/jacoco-it.exec - ${jacoco.output.data}/jacoco-it - - - - merge-unit-and-integration - post-integration-test - - merge - - - - - ${jacoco.output.data} - - *.exec - - - - ${project.build.directory}/jacoco.exec - - - - merged-reports - post-integration-test - - report - - - ${project.build.directory}/jacoco.exec - ${jacoco.output.data}/merged-test-report - - - - coverage-check - - check - - - - - BUNDLE - - - LINE - COVEREDRATIO - 80% - - - - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.6.2 - - 8 - Javadoc Documentation for ${project.name} ${project.version} - - ${project.name} ${project.version} - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.4.1 - - - default-cli - - enforce - - - - - - [3.2,) - Invalid Maven version. It should be at least 3.2 - - - 17 - Invalid Java Version. It should be at least 17 - - - - central - spring-milestones - - - central - spring-milestones - - - - No Snapshots Allowed in releases! - true - - - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.3.1 - - ${checkstyle.skip} - google_checks.xml - true - true - false - - - - validate - validate - - check - - - - - - - org.cyclonedx - cyclonedx-maven-plugin - 2.7.10 - - - validate - - makeAggregateBom - - - - - ${checkstyle.skip} - application - all - bom - - - - - nr-forest-client-legacy - - - - - dev - - - - all-tests - - all-tests - false - false - false - - - - - integration-test - - integration-test - false - true - - - - - macos - - - mac - aarch64 - - - - - io.netty - netty-resolver-dns-native-macos - osx-aarch_64 - - - - - - native - - native - true - true - - - - - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 3.1.5 + + + + ca.bc.gov.nrs + nr-forest-client-legacy + 0.0.1 + nr-forest-client-legacy + Starting NR Forest Client Legacy for Oracle Access + + + + Apache License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + UTF-8 + UTF-8 + 17 + 17 + 3.10.1 + ${java.version} + ${java.version} + + true + false + true + true + + ${project.build.directory}/coverage-reports + + ${maven.build.timestamp} + yyyy-MM-dd HH:mm:ss + + 1.19.1 + + 5.9.1 + 1.9.1 + + ${project.version} + 5.2.3 + + + + + org.springframework.boot + spring-boot-starter-webflux + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.boot + spring-boot-configuration-processor + + + org.springframework.boot + spring-boot-starter-data-r2dbc + + + + com.oracle.database.r2dbc + oracle-r2dbc + runtime + + + + org.springdoc + springdoc-openapi-starter-webflux-ui + 2.2.0 + + + + org.apache.commons + commons-lang3 + + + org.projectlombok + lombok + true + + + + org.dhatim + fastexcel + 0.15.7 + + + + org.springframework.boot + spring-boot-starter-test + test + + + io.projectreactor + reactor-test + test + + + org.junit.jupiter + junit-jupiter-params + test + + + org.testcontainers + testcontainers + test + + + org.testcontainers + junit-jupiter + test + + + org.testcontainers + r2dbc + test + + + org.testcontainers + oracle-xe + 1.19.1 + test + + + org.flywaydb + flyway-core + test + + + org.springframework + spring-jdbc + test + + + org.wiremock + wiremock-standalone + 3.0.3 + test + + + + + + + org.testcontainers + testcontainers-bom + ${testcontainers.version} + pom + import + + + org.yaml + snakeyaml + 2.2 + + + io.projectreactor.netty + reactor-netty-http + 1.1.13 + + + + + + + + org.graalvm.buildtools + native-maven-plugin + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.2.2 + + + integration-tests + + integration-test + verify + + + @{argLine} + false + ${skip.integration.tests} + + **/*IntegrationTest.java + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.2.2 + + @{argLine} + ${skip.unit.tests} + + **/*IntegrationTest.java + + + + cucumber.junit-platform.naming-strategy=long + + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.11 + + ${jacoco.skip} + + **/configuration/** + **/exception/** + **/dto/** + **/entity/** + **/repository/** + **/*$*Builder* + **/BootApplication* + + + + + pre-unit-test + + prepare-agent + + + ${jacoco.output.data}/jacoco-ut.exec + + + + post-unit-test + test + + report + + + ${jacoco.output.data}/jacoco-ut.exec + ${jacoco.output.data}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent-integration + + + ${jacoco.output.data}/jacoco-it.exec + + + + post-integration-test + post-integration-test + + report-integration + + + ${jacoco.output.data}/jacoco-it.exec + ${jacoco.output.data}/jacoco-it + + + + merge-unit-and-integration + post-integration-test + + merge + + + + + ${jacoco.output.data} + + *.exec + + + + ${project.build.directory}/jacoco.exec + + + + merged-reports + post-integration-test + + report + + + ${project.build.directory}/jacoco.exec + ${jacoco.output.data}/merged-test-report + + + + coverage-check + + check + + + + + BUNDLE + + + LINE + COVEREDRATIO + 80% + + + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.2 + + 8 + Javadoc Documentation for ${project.name} ${project.version} + + ${project.name} ${project.version} + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.4.1 + + + default-cli + + enforce + + + + + + [3.2,) + Invalid Maven version. It should be at least 3.2 + + + 17 + Invalid Java Version. It should be at least 17 + + + + central + spring-milestones + + + central + spring-milestones + + + + No Snapshots Allowed in releases! + true + + + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.3.1 + + ${checkstyle.skip} + google_checks.xml + true + true + false + + + + validate + validate + + check + + + + + + + org.cyclonedx + cyclonedx-maven-plugin + 2.7.10 + + + validate + + makeAggregateBom + + + + + ${checkstyle.skip} + application + all + bom + + + + + nr-forest-client-legacy + + + + + dev + + + + all-tests + + all-tests + false + false + false + + + + + integration-test + + integration-test + false + true + + + + + macos + + + mac + aarch64 + + + + + io.netty + netty-resolver-dns-native-macos + osx-aarch_64 + + + + + + native + + native + true + true + + + + + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + false + + + \ No newline at end of file diff --git a/processor/pom.xml b/processor/pom.xml index 8f1105274f..f0afd3942a 100644 --- a/processor/pom.xml +++ b/processor/pom.xml @@ -182,6 +182,11 @@ snakeyaml 2.2 + + io.projectreactor.netty + reactor-netty-http + 1.1.13 +