Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency org.apache.httpcomponents:httpclient, leading to CVE problem #89

Open
CVEDetect opened this issue Nov 30, 2022 · 0 comments
Open

Comments

@CVEDetect
Copy link

CVEDetect commented Nov 30, 2022

Describe the bug
A clear and concise description of what the bug is.

Hi, In /api-boot-sample-integration/,there is a dependency **org.apache.httpcomponents:httpclient:4.5.1
** that calls the risk method.

CVE-2020-13956

The scope of this CVE affected version is [,4.5.13)

After further analysis, in this project, the main Api called is org.apache.http.client.utils.URIUtils: extractHost(java.net.URI)Lorg.apache.http.HttpHost

Risk method repair link : GitHub

CVE Bug Invocation Path--

Path Length : 6

org.minbox.framework.knowledge.library.common.tools.HttpClientTools: get(java.lang.String)Ljava.lang.String; .m2/repository/org/springframework/data/spring-data-keyvalue/2.7.2/spring-data-keyvalue-2.7.2.jar
org.minbox.framework.knowledge.library.common.tools.HttpClientTools: getResult(org.apache.http.client.methods.HttpRequestBase)Ljava.lang.String; .m2/repository/org/springframework/data/spring-data-keyvalue/2.7.2/spring-data-keyvalue-2.7.2.jar
org.apache.http.impl.client.CloseableHttpClient: execute(org.apache.http.client.methods.HttpUriRequest)Lorg.apache.http.client.methods.CloseableHttpResponse; .m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
org.apache.http.impl.client.CloseableHttpClient: execute(org.apache.http.client.methods.HttpUriRequest,org.apache.http.protocol.HttpContext)Lorg.apache.http.client.methods.CloseableHttpResponse; .m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
org.apache.http.impl.client.CloseableHttpClient: determineTarget(org.apache.http.client.methods.HttpUriRequest)Lorg.apache.http.HttpHost; .m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
org.apache.http.client.utils.URIUtils: extractHost(java.net.URI)Lorg.apache.http.HttpHost;

Dependency tree--

[INFO] org.minbox.framework:api-boot-sample-integration:jar:2.3.9-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.7.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.7.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:2.7.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.7.3:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.7.3:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.11:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.11:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.30:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-json:jar:2.7.3:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.3:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.3:compile
[INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.3:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.7.3:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.65:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.65:compile
[INFO] |  |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.65:compile
[INFO] |  +- org.springframework:spring-web:jar:5.3.22:compile
[INFO] |  |  \- org.springframework:spring-beans:jar:5.3.22:compile
[INFO] |  \- org.springframework:spring-webmvc:jar:5.3.22:compile
[INFO] |     +- org.springframework:spring-aop:jar:5.3.22:compile
[INFO] |     +- org.springframework:spring-context:jar:5.3.22:compile
[INFO] |     \- org.springframework:spring-expression:jar:5.3.22:compile
[INFO] +- org.minbox.framework:api-boot-starter-security-oauth-jwt:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- org.minbox.framework:api-boot-starter:jar:2.3.9-SNAPSHOT:compile
[INFO] |  |  +- org.minbox.framework:api-boot-autoconfigure:jar:2.3.9-SNAPSHOT:compile
[INFO] |  |  |  +- org.springframework.boot:spring-boot-configuration-processor:jar:2.7.3:compile
[INFO] |  |  |  \- org.minbox.framework:api-boot-tools:jar:2.3.9-SNAPSHOT:compile
[INFO] |  |  |     \- org.minbox.framework:minbox-core:jar:1.0.8:compile
[INFO] |  |  +- org.minbox.framework:api-boot-common:jar:2.3.9-SNAPSHOT:compile
[INFO] |  |  \- org.minbox.framework:api-boot:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- org.springframework.security.oauth:spring-security-oauth2:jar:2.5.0.RELEASE:compile
[INFO] |  |  +- org.springframework.security:spring-security-core:jar:5.7.3:compile
[INFO] |  |  |  \- org.springframework.security:spring-security-crypto:jar:5.7.3:compile
[INFO] |  |  +- org.springframework.security:spring-security-config:jar:5.7.3:compile
[INFO] |  |  \- org.springframework.security:spring-security-web:jar:5.7.3:compile
[INFO] |  +- org.springframework.security:spring-security-jwt:jar:1.1.0.RELEASE:compile
[INFO] |  |  \- org.bouncycastle:bcpkix-jdk15on:jar:1.64:compile
[INFO] |  |     \- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
[INFO] |  +- com.google.guava:guava:jar:31.1-jre:compile
[INFO] |  |  +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] |  |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] |  |  +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] |  |  +- org.checkerframework:checker-qual:jar:3.12.0:compile
[INFO] |  |  +- com.google.errorprone:error_prone_annotations:jar:2.11.0:compile
[INFO] |  |  \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.3:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.3:compile
[INFO] |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.13.3:compile
[INFO] |  +- org.minbox.framework:minbox-oauth:jar:1.0.2:compile
[INFO] |  \- org.minbox.framework:minbox-security:jar:1.0.0.RELEASE:compile
[INFO] |     \- org.springframework.boot:spring-boot-starter-security:jar:2.7.3:compile
[INFO] +- org.minbox.framework:api-boot-starter-swagger:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- io.springfox:springfox-swagger-ui:jar:2.9.2:compile
[INFO] |  |  \- io.springfox:springfox-spring-web:jar:2.9.2:compile
[INFO] |  +- io.springfox:springfox-swagger2:jar:2.9.2:compile
[INFO] |  |  +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] |  |  +- io.swagger:swagger-models:jar:1.5.20:compile
[INFO] |  |  +- io.springfox:springfox-spi:jar:2.9.2:compile
[INFO] |  |  |  \- io.springfox:springfox-core:jar:2.9.2:compile
[INFO] |  |  +- io.springfox:springfox-schema:jar:2.9.2:compile
[INFO] |  |  +- io.springfox:springfox-swagger-common:jar:2.9.2:compile
[INFO] |  |  +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] |  |  +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] |  |  \- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] |  +- io.springfox:springfox-bean-validators:jar:2.9.2:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:2.7.3:compile
[INFO] |     \- org.hibernate.validator:hibernate-validator:jar:6.2.4.Final:compile
[INFO] |        +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] |        \- org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] +- org.minbox.framework:api-boot-starter-http-converter:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- com.alibaba:fastjson:jar:1.2.80:compile
[INFO] |  \- org.reflections:reflections:jar:0.9.11:compile
[INFO] |     \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] +- org.minbox.framework:api-boot-starter-resource-load:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- org.minbox.framework:minbox-resource-load:jar:1.0.0.RELEASE:compile
[INFO] |  |  \- org.springframework.boot:spring-boot-starter-data-redis:jar:2.7.3:compile
[INFO] |  |     +- org.springframework.data:spring-data-redis:jar:2.7.2:compile
[INFO] |  |     |  +- org.springframework.data:spring-data-keyvalue:jar:2.7.2:compile
[INFO] |  |     |  |  \- org.springframework.data:spring-data-commons:jar:2.7.2:compile
[INFO] |  |     |  +- org.springframework:spring-oxm:jar:5.3.22:compile
[INFO] |  |     |  \- org.springframework:spring-context-support:jar:5.3.22:compile
[INFO] |  |     \- io.lettuce:lettuce-core:jar:6.1.9.RELEASE:compile
[INFO] |  |        +- io.netty:netty-common:jar:4.1.79.Final:compile
[INFO] |  |        +- io.netty:netty-handler:jar:4.1.79.Final:compile
[INFO] |  |        |  +- io.netty:netty-resolver:jar:4.1.79.Final:compile
[INFO] |  |        |  +- io.netty:netty-buffer:jar:4.1.79.Final:compile
[INFO] |  |        |  +- io.netty:netty-transport-native-unix-common:jar:4.1.79.Final:compile
[INFO] |  |        |  \- io.netty:netty-codec:jar:4.1.79.Final:compile
[INFO] |  |        +- io.netty:netty-transport:jar:4.1.79.Final:compile
[INFO] |  |        \- io.projectreactor:reactor-core:jar:3.4.22:compile
[INFO] |  |           \- org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-aop:jar:2.7.3:compile
[INFO] |     \- org.aspectj:aspectjweaver:jar:1.9.7:compile
[INFO] +- com.zaxxer:HikariCP:jar:4.0.3:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] +- org.minbox.framework:api-boot-starter-mybatis-enhance:jar:2.3.9-SNAPSHOT:compile
[INFO] |  +- com.gitee.hengboy:mybatis-enhance-core:jar:1.1.4:compile
[INFO] |  |  +- org.mybatis:mybatis:jar:3.5.6:compile
[INFO] |  |  +- org.mybatis:mybatis-spring:jar:2.0.6:compile
[INFO] |  |  \- org.springframework:spring-jdbc:jar:5.3.22:compile
[INFO] |  |     \- org.springframework:spring-tx:jar:5.3.22:compile
[INFO] |  \- com.gitee.hengboy:mybatis-enhance-dsl:jar:1.1.4:compile
[INFO] +- org.minbox.framework:api-boot-starter-mybatis-pageable:jar:2.3.9-SNAPSHOT:compile
[INFO] |  \- org.minbox.framework:mybatis-pageable:jar:1.0.8:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.30:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.24:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.7.3:test
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:2.7.3:test
[INFO] |  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.7.3:test
[INFO] |  +- com.jayway.jsonpath:json-path:jar:2.7.0:test
[INFO] |  |  \- net.minidev:json-smart:jar:2.4.8:test
[INFO] |  |     \- net.minidev:accessors-smart:jar:2.4.8:test
[INFO] |  |        \- org.ow2.asm:asm:jar:9.1:test
[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
[INFO] |  |  \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
[INFO] |  +- org.assertj:assertj-core:jar:3.22.0:test
[INFO] |  +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] |  +- org.junit.jupiter:junit-jupiter:jar:5.8.2:test
[INFO] |  |  +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
[INFO] |  |  |  +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] |  |  |  +- org.junit.platform:junit-platform-commons:jar:1.8.2:test
[INFO] |  |  |  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] |  |  +- org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
[INFO] |  |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
[INFO] |  |     \- org.junit.platform:junit-platform-engine:jar:1.8.2:test
[INFO] |  +- org.mockito:mockito-core:jar:4.5.1:test
[INFO] |  |  +- net.bytebuddy:byte-buddy:jar:1.12.13:compile
[INFO] |  |  +- net.bytebuddy:byte-buddy-agent:jar:1.12.13:test
[INFO] |  |  \- org.objenesis:objenesis:jar:3.2:test
[INFO] |  +- org.mockito:mockito-junit-jupiter:jar:4.5.1:test
[INFO] |  +- org.skyscreamer:jsonassert:jar:1.5.1:test
[INFO] |  |  \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] |  +- org.springframework:spring-core:jar:5.3.22:compile
[INFO] |  |  \- org.springframework:spring-jcl:jar:5.3.22:compile
[INFO] |  +- org.springframework:spring-test:jar:5.3.22:test
[INFO] |  \- org.xmlunit:xmlunit-core:jar:2.9.0:test
[INFO] +- org.mapstruct:mapstruct:jar:1.3.0.Final:compile
[INFO] +- org.mapstruct:mapstruct-processor:jar:1.3.0.Final:provided
[INFO] +- javax.inject:javax.inject:jar:1:compile
[INFO] \- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO]    +- org.apache.httpcomponents:httpcore:jar:4.4.15:compile
[INFO]    \- commons-codec:commons-codec:jar:1.15:compile

Suggested solutions:

Update dependency version

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant