ReachabilityOrg / WebGoat_8.1.0_2

Other
0 stars 0 forks source link

webgoat-container-v8.1.0.jar: 6 vulnerabilities (highest severity is: 9.8) reachable #35

Open dev-mend-for-github-com[bot] opened 1 year ago

dev-mend-for-github-com[bot] commented 1 year ago
Vulnerable Library - webgoat-container-v8.1.0.jar

Path to dependency file: /webgoat-integration-tests/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-webmvc/5.2.2.RELEASE/spring-webmvc-5.2.2.RELEASE.jar

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (webgoat-container-v8.1.0.jar version) Remediation Possible** Reachability
CVE-2020-25638 High 7.4 hibernate-core-5.4.9.Final.jar Transitive N/A*

Reachable

CVE-2019-14900 Medium 6.5 hibernate-core-5.4.9.Final.jar Transitive N/A*

Reachable

CVE-2020-5397 Medium 5.3 spring-webmvc-5.2.2.RELEASE.jar Transitive N/A*

Reachable

CVE-2020-10693 Medium 5.3 hibernate-validator-6.0.18.Final.jar Transitive N/A*

Reachable

CVE-2021-22096 Medium 4.3 spring-webmvc-5.2.2.RELEASE.jar Transitive N/A*

Reachable

CVE-2020-10683 Critical 9.8 dom4j-2.1.1.jar Transitive N/A*

Unreachable

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2020-25638 ### Vulnerable Library - hibernate-core-5.4.9.Final.jar

Hibernate's core ORM functionality

Library home page: http://hibernate.org/orm

Path to dependency file: /webgoat-integration-tests/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/hibernate/hibernate-core/5.4.9.Final/hibernate-core-5.4.9.Final.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-data-jpa-2.2.2.RELEASE.jar - :x: **hibernate-core-5.4.9.Final.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.hibernate.dialect.AbstractHANADialect$MaterializedNClob (Extension) -> org.hibernate.dialect.AbstractHANADialect (Extension) -> org.hibernate.hql.spi.id.MultiTableBulkIdStrategy (Extension) -> org.hibernate.hql.internal.ast.HqlSqlWalker (Extension) -> ❌ org.hibernate.hql.internal.ast.tree.DotNode (Vulnerable Component) ```

### Vulnerability Details

A flaw was found in hibernate-core in versions prior to and including 5.4.23.Final. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SQL comments of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks. The highest threat from this vulnerability is to data confidentiality and integrity.

Publish Date: 2020-12-02

URL: CVE-2020-25638

### CVSS 3 Score Details (7.4)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://in.relation.to/2020/11/19/hibernate-orm-5424-final-release/

Release Date: 2020-12-02

Fix Resolution: org.hibernate:hibernate-core:5.3.20.Final,5.4.24.Final

CVE-2019-14900 ### Vulnerable Library - hibernate-core-5.4.9.Final.jar

Hibernate's core ORM functionality

Library home page: http://hibernate.org/orm

Path to dependency file: /webgoat-integration-tests/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/hibernate/hibernate-core/5.4.9.Final/hibernate-core-5.4.9.Final.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-data-jpa-2.2.2.RELEASE.jar - :x: **hibernate-core-5.4.9.Final.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.sql_injection.advanced.SqlInjectionChallenge (Application) -> org.hibernate.dialect.AbstractHANADialect$MaterializedNClob (Extension) -> org.hibernate.type.descriptor.java.DataHelper (Extension) -> org.hibernate.boot.spi.InFlightMetadataCollector (Extension) ... -> org.hibernate.internal.SessionFactoryImpl$StatelessSessionBuilderImpl (Extension) -> org.hibernate.internal.StatelessSessionImpl (Extension) -> ❌ org.hibernate.query.criteria.internal.expression.LiteralExpression (Vulnerable Component) ```

### Vulnerability Details

A flaw was found in Hibernate ORM in versions before 5.3.18, 5.4.18 and 5.5.0.Beta1. A SQL injection in the implementation of the JPA Criteria API can permit unsanitized literals when a literal is used in the SELECT or GROUP BY parts of the query. This flaw could allow an attacker to access unauthorized information or possibly conduct further attacks.

Publish Date: 2020-07-06

URL: CVE-2019-14900

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14900

Release Date: 2020-07-06

Fix Resolution: org.hibernate:hibernate-core:5.4.18.Final

CVE-2020-5397 ### Vulnerable Library - spring-webmvc-5.2.2.RELEASE.jar

Spring Web MVC

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /webgoat-container/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-webmvc/5.2.2.RELEASE/spring-webmvc-5.2.2.RELEASE.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-web-2.2.2.RELEASE.jar - :x: **spring-webmvc-5.2.2.RELEASE.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.MvcConfiguration (Application) -> org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer (Extension) -> org.springframework.web.servlet.handler.SimpleUrlHandlerMapping (Extension) -> ❌ org.springframework.web.servlet.handler.AbstractHandlerMapping (Vulnerable Component) ```

### Vulnerability Details

Spring Framework, versions 5.2.x prior to 5.2.3 are vulnerable to CSRF attacks through CORS preflight requests that target Spring MVC (spring-webmvc module) or Spring WebFlux (spring-webflux module) endpoints. Only non-authenticated endpoints are vulnerable because preflight requests should not include credentials and therefore requests should fail authentication. However a notable exception to this are Chrome based browsers when using client certificates for authentication since Chrome sends TLS client certificates in CORS preflight requests in violation of spec requirements. No HTTP body can be sent or received as a result of this attack.

Publish Date: 2020-01-17

URL: CVE-2020-5397

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://pivotal.io/security/cve-2020-5397

Release Date: 2020-01-17

Fix Resolution: 5.2.3

CVE-2020-10693 ### Vulnerable Library - hibernate-validator-6.0.18.Final.jar

Hibernate's Bean Validation (JSR-380) reference implementation.

Library home page: http://hibernate.org/validator

Path to dependency file: /webwolf/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.18.Final/hibernate-validator-6.0.18.Final.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-web-2.2.2.RELEASE.jar - spring-boot-starter-validation-2.2.2.RELEASE.jar - :x: **hibernate-validator-6.0.18.Final.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.WebSecurityConfig (Application) -> org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$OptionalPathExtensionContentNegotiationStrategy (Extension) -> org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration (Extension) -> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean$HibernateValidatorDelegate (Extension) ... -> org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator (Extension) -> org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenCollector (Extension) -> ❌ org.hibernate.validator.internal.engine.messageinterpolation.parser.MessageState (Vulnerable Component) ```

### Vulnerability Details

A flaw was found in Hibernate Validator version 6.1.2.Final. A bug in the message interpolation processor enables invalid EL expressions to be evaluated as if they were valid. This flaw allows attackers to bypass input sanitation (escaping, stripping) controls that developers may have put in place when handling user-controlled data in error messages.

Publish Date: 2020-05-06

URL: CVE-2020-10693

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://in.relation.to/2020/05/07/hibernate-validator-615-6020-released/

Release Date: 2020-05-06

Fix Resolution: org.hibernate:hibernate-validator:6.0.20.Final,6.1.5.Final

CVE-2021-22096 ### Vulnerable Library - spring-webmvc-5.2.2.RELEASE.jar

Spring Web MVC

Library home page: https://github.com/spring-projects/spring-framework

Path to dependency file: /webgoat-container/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/spring-webmvc/5.2.2.RELEASE/spring-webmvc-5.2.2.RELEASE.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-web-2.2.2.RELEASE.jar - :x: **spring-webmvc-5.2.2.RELEASE.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.MvcConfiguration (Application) -> org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration (Extension) -> ❌ org.springframework.web.servlet.resource.ResourceHttpRequestHandler (Vulnerable Component) ```

### Vulnerability Details

In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries.

Publish Date: 2021-10-28

URL: CVE-2021-22096

### CVSS 3 Score Details (4.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://tanzu.vmware.com/security/cve-2021-22096

Release Date: 2021-10-28

Fix Resolution: org.springframework:spring-core:5.2.18.RELEASE,5.3.12;org.springframework:spring-web:5.2.18.RELEASE,5.3.12;org.springframework:spring-webmvc:5.2.18.RELEASE,5.3.12;org.springframework:spring-webflux:5.2.18.RELEASE,5.3.12

CVE-2020-10683 ### Vulnerable Library - dom4j-2.1.1.jar

flexible XML framework for Java

Library home page: http://dom4j.github.io/

Path to dependency file: /webgoat-container/pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/dom4j/dom4j/2.1.1/dom4j-2.1.1.jar

Dependency Hierarchy: - webgoat-container-v8.1.0.jar (Root Library) - spring-boot-starter-data-jpa-2.2.2.RELEASE.jar - hibernate-core-5.4.9.Final.jar - :x: **dom4j-2.1.1.jar** (Vulnerable Library)

Found in HEAD commit: f0c1d123bb3375482e903c0febdd18513fb47ec8

Found in base branch: master

### Reachability Analysis

The vulnerable code is unreachable

### Vulnerability Details

dom4j before 2.0.3 and 2.1.x before 2.1.3 allows external DTDs and External Entities by default, which might enable XXE attacks. However, there is popular external documentation from OWASP showing how to enable the safe, non-default behavior in any application that uses dom4j.

Publish Date: 2020-05-01

URL: CVE-2020-10683

### CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2020-05-01

Fix Resolution: org.dom4j:dom4j:2.1.3,org.dom4j:dom4j:2.0.3