From 1a2f696efeb72fb392b2dd5090fc2fafc96e90b5 Mon Sep 17 00:00:00 2001 From: Shawn McKinney Date: Tue, 10 Dec 2019 15:48:21 -0600 Subject: [PATCH] FC-274 - Upgrade maven plugins and dependencies --- README.md | 10 ++++-- pom.xml | 70 ++++++++++++++++++++++++++++----------- src/owasp/suppression.xml | 37 +++++++++++++++++++++ 3 files changed, 94 insertions(+), 23 deletions(-) create mode 100644 src/owasp/suppression.xml diff --git a/README.md b/README.md index 94ee004..b2a19c8 100644 --- a/README.md +++ b/README.md @@ -202,10 +202,14 @@ This web app uses Java EE security. ``` This sample requires Java 8 and Maven 3 to be setup within the execution env. - + +#### 2. Load the default security policy for Fortress REST. + + ``` mvn install -Dload.file=src/main/resources/FortressRestServerPolicy.xml + ``` -#### 2. Optional, load a sample security policy for ARBAC. +#### 3. Optional, load a sample security policy for ARBAC. ```maven mvn install -Dload.file=src/main/resources/FortressRestArbacSamplePolicy.xml ``` @@ -214,7 +218,7 @@ This web app uses Java EE security. * *-Dload.file* automatically loads the [directory-fortress-rest security policy](src/main/resources/FortressRestServerPolicy.xml) data into ldap. * This load needs to happen just once for the default test cases to work and may be dropped from future `mvn` commands. -#### 3. Deploy to Tomcat: +#### 4. Deploy to Tomcat: a. If using autodeploy feature, verify the Tomcat auto-deploy options are set correctly in the [pom.xml](pom.xml) file: ```xml diff --git a/pom.xml b/pom.xml index 38f51c0..5260deb 100755 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ 1.8 2.0.4 - 3.2.6 + 3.3.4 3.1 1.8 2.9.1 @@ -112,9 +112,9 @@ 1.2.17 2.5.0 1.7.21 - 5.0.9.RELEASE - 5.0.7.RELEASE - 2.9.7 + 2.10.1 + 2.3.0.1 + 2.3.2 . @@ -155,17 +155,16 @@ ${jackson-jaxrs.version} - org.springframework spring-core - ${spring.version} + 5.2.2.RELEASE org.springframework.security spring-security-web - ${spring.security.version} + 5.2.1.RELEASE @@ -197,16 +196,16 @@ - com.sun.xml.bind - jaxb-core - 2.3.0 - + com.sun.xml.bind + jaxb-impl + ${version.jaxb.impl} + - com.sun.xml.bind - jaxb-impl - 2.3.0 - + org.glassfish.jaxb + jaxb-core + ${version.jaxb.core} + @@ -289,7 +288,6 @@ local-tomcat http://localhost:8080/manager/text /${project.artifactId}-${project.version} - tcmanager m@nager123 @@ -311,11 +309,21 @@ + + org.owasp + dependency-check-maven + 5.2.4 + + true + ${project.basedir}/src/owasp/suppression.xml + + + org.apache.maven.plugins maven-war-plugin - 2.4 + 3.2.3 ${project.artifactId}-${project.version} @@ -357,7 +365,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.8.1 ${java.version} ${java.version} @@ -369,7 +377,7 @@ org.apache.maven.plugins maven-source-plugin - 3.0.0 + 3.2.0 attach-sources @@ -451,4 +459,26 @@ - + + + + + owasp + + + + org.owasp + dependency-check-maven + + + + check + + + + + + + + + \ No newline at end of file diff --git a/src/owasp/suppression.xml b/src/owasp/suppression.xml new file mode 100644 index 0000000..06d1344 --- /dev/null +++ b/src/owasp/suppression.xml @@ -0,0 +1,37 @@ + + + + + + + ^pkg:maven/org\.springframework\.security/spring\-security\-core@.*$ + CVE-2018-1258 + + + + ^pkg:maven/org\.springframework\.security/spring\-security\-web@.*$ + cpe:/a:pivotal_software:spring_security + + \ No newline at end of file