Skip to content

Commit

Permalink
issue_863: removed some critical vulnerable dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatSilentCoder committed Nov 27, 2024
1 parent 8008c4d commit bc25d6a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
11 changes: 9 additions & 2 deletions HIRS_AttestationCA/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ dependencies {
implementation libs.log4j.api
implementation libs.log4j.core
implementation libs.minimal.json
implementation libs.pci

// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient

implementation libs.protobuf.java
implementation libs.spring.data.jpa.datatables
implementation libs.spring.boot.starter.data.jpa
implementation libs.spring.retry
implementation libs.spring.boot.starter.web
Expand Down
10 changes: 9 additions & 1 deletion HIRS_AttestationCAPortal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ dependencies {
implementation libs.jakarta.xml
implementation libs.log4j.spring.boot
implementation libs.mariadb.java.client
implementation libs.pci

// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient

implementation libs.spring.boot.starter.web
implementation libs.spring.boot.starter.validation
implementation libs.spring.boot.starter.data.jpa
Expand Down
10 changes: 9 additions & 1 deletion HIRS_Utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ dependencies {
implementation libs.log4j.core
implementation libs.log4j.api
implementation libs.minimal.json
implementation libs.pci

// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient

implementation libs.slf4j.simple

compileOnly libs.lombok
Expand Down
4 changes: 2 additions & 2 deletions gradle/versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[versions]
apacheHttpClientVersion = "4.5.14"
bouncyCastleVersion = "1.79"
commonsCodecVersion = "1.17.1"
commonsFileUploadVersion = "1.5"
Expand All @@ -22,7 +23,6 @@ ospackageVersion = "11.2.0"
pciVersion = "0.3"
protobufJavaVersion = "4.28.3"
springBootVersion = "3.0.1"
springDataJpaDatatablesVersion = "6.0.1"
springRetryVersion = "2.0.0"
testngVersion = "7.10.2"
tomcatVersion = "10.1.33"
Expand All @@ -38,6 +38,7 @@ springTestVersion = "6.0.8"
spotBugAnnotationVersion = "4.8.6"

[libraries]
apacheHttpClient = { module = "org.apache.httpcomponents:httpclient", version.ref = "apacheHttpClientVersion" }
bouncycastle = { module = "org.bouncycastle:bcmail-jdk15to18", version.ref = "bouncyCastleVersion" }
commons-codec = { module = "commons-codec:commons-codec", version.ref = "commonsCodecVersion" }
commons-fileupload = { module = "commons-fileupload:commons-fileupload", version.ref = "commonsFileUploadVersion" }
Expand Down Expand Up @@ -69,7 +70,6 @@ spring-boot-starter-log4j2 = { module = "org.springframework.boot:spring-boot-st
spring-boot-starter-tomcat = { module = "org.springframework.boot:spring-boot-starter-tomcat", version.ref = "springBootVersion" }
spring-boot-starter-validation = { module = "org.springframework.boot:spring-boot-starter-validation", version.ref = "springBootVersion" }
spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web", version.ref = "springBootVersion" }
spring-data-jpa-datatables = { module = "com.github.darrachequesne:spring-data-jpa-datatables", version.ref = "springDataJpaDatatablesVersion" }
spring-retry = { module = "org.springframework.retry:spring-retry", version.ref = "springRetryVersion" }
tomcat-embed-jasper = { module = "org.apache.tomcat.embed:tomcat-embed-jasper", version.ref = "tomcatVersion" }
testng = { module = "org.testng:testng", version.ref = "testngVersion" }
Expand Down

0 comments on commit bc25d6a

Please sign in to comment.