MendDemo-josh / WebGoat

Other
0 stars 0 forks source link

spring-boot-starter-security-3.1.0.jar: 4 vulnerabilities (highest severity is: 9.8) reachable #25

Open mend-for-github-com[bot] opened 6 months ago

mend-for-github-com[bot] commented 6 months ago
Vulnerable Library - spring-boot-starter-security-3.1.0.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-core/6.1.0/spring-security-core-6.1.0.jar

Found in HEAD commit: 59431581b1bb97286217d47b9b8d32586fa2dc9e

Vulnerabilities

CVE Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (spring-boot-starter-security version) Remediation Possible** Reachability
CVE-2023-34034 Critical 9.8 Not Defined 0.3% spring-security-config-6.1.0.jar Transitive 3.1.2

Reachable

CVE-2024-22257 High 8.2 Not Defined 0.0% spring-security-core-6.1.0.jar Transitive 3.1.10

Reachable

CVE-2024-22234 High 7.4 Not Defined 0.0% detected in multiple dependencies Transitive 3.1.9

Reachable

CVE-2023-34035 Medium 5.3 Not Defined 0.1% spring-security-config-6.1.0.jar Transitive 3.1.2

Reachable

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

Details

CVE-2023-34034 ### Vulnerable Library - spring-security-config-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-config/6.1.0/spring-security-config-6.1.0.jar

Dependency Hierarchy: - spring-boot-starter-security-3.1.0.jar (Root Library) - :x: **spring-security-config-6.1.0.jar** (Vulnerable Library)

Found in HEAD commit: 59431581b1bb97286217d47b9b8d32586fa2dc9e

Found in base branch: main

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.webwolf.WebSecurityConfig (Application) -> org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration$DefaultPasswordEncoderAuthenticationManagerBuilder (Extension) -> org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration (Extension) -> org.springframework.security.config.annotation.web.configurers.DefaultLoginPageConfigurer (Extension) ... -> org.springframework.security.config.annotation.web.configurers.CsrfConfigurer (Extension) -> org.springframework.security.config.annotation.web.configurers.CsrfConfigurer$IgnoreCsrfProtectionRegistry (Extension) -> ❌ org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry (Vulnerable Component) ```

### Vulnerability Details

Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spring Security and Spring WebFlux, and the potential for a security bypass.

Publish Date: 2023-07-19

URL: CVE-2023-34034

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.3%

### 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

Origin: https://spring.io/security/cve-2023-34034

Release Date: 2023-07-19

Fix Resolution (org.springframework.security:spring-security-config): 6.1.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.2

In order to enable automatic remediation, please create workflow rules

CVE-2024-22257 ### Vulnerable Library - spring-security-core-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-core/6.1.0/spring-security-core-6.1.0.jar

Dependency Hierarchy: - spring-boot-starter-security-3.1.0.jar (Root Library) - spring-security-config-6.1.0.jar - :x: **spring-security-core-6.1.0.jar** (Vulnerable Library)

Found in HEAD commit: 59431581b1bb97286217d47b9b8d32586fa2dc9e

Found in base branch: main

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.container.WebSecurityConfig (Application) -> org.springframework.security.config.annotation.web.builders.HttpSecurity (Extension) -> org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer$AuthorizationManagerRequestMatcherRegistry (Extension) -> org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer$AuthorizedUrl (Extension) -> org.springframework.security.authorization.AuthenticatedAuthorizationManager (Extension) -> ❌ org.springframework.security.authorization.AuthenticatedAuthorizationManager$FullyAuthenticatedAuthorizationStrategy (Vulnerable Component) ```

### Vulnerability Details

In Spring Security, versions 5.7.x prior to 5.7.12, 5.8.x prior to 5.8.11, versions 6.0.x prior to 6.0.9, versions 6.1.x prior to 6.1.8, versions 6.2.x prior to 6.2.3, an application is possible vulnerable to broken access control when it directly uses the AuthenticatedVoter#vote passing a null Authentication parameter.

Publish Date: 2024-03-18

URL: CVE-2024-22257

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.0%

### CVSS 3 Score Details (8.2)

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: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://spring.io/security/cve-2024-22257

Release Date: 2024-03-18

Fix Resolution (org.springframework.security:spring-security-core): 6.1.8

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.10

In order to enable automatic remediation, please create workflow rules

CVE-2024-22234 ### Vulnerable Libraries - spring-security-web-6.1.0.jar, spring-security-core-6.1.0.jar

### spring-security-web-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-web/6.1.0/spring-security-web-6.1.0.jar

Dependency Hierarchy: - spring-boot-starter-security-3.1.0.jar (Root Library) - :x: **spring-security-web-6.1.0.jar** (Vulnerable Library) ### spring-security-core-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-core/6.1.0/spring-security-core-6.1.0.jar

Dependency Hierarchy: - spring-boot-starter-security-3.1.0.jar (Root Library) - spring-security-config-6.1.0.jar - :x: **spring-security-core-6.1.0.jar** (Vulnerable Library)

Found in HEAD commit: 59431581b1bb97286217d47b9b8d32586fa2dc9e

Found in base branch: main

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.lessons.csrf.ForgedReviews (Application) -> ❌ org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper (Vulnerable Component) ```

### Vulnerability Details

In Spring Security, versions 6.1.x prior to 6.1.7 and versions 6.2.x prior to 6.2.2, an application is vulnerable to broken access control when it directly uses the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method. Specifically, an application is vulnerable if: * The application uses AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly and a null authentication parameter is passed to it resulting in an erroneous true return value. An application is not vulnerable if any of the following is true: * The application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly. * The application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated * The application only uses isFullyAuthenticated via Method Security https://docs.spring.io/spring-security/reference/servlet/authorization/method-security.html  or HTTP Request Security https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html

Publish Date: 2024-02-20

URL: CVE-2024-22234

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.0%

### 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://spring.io/security/cve-2024-22234

Release Date: 2024-02-20

Fix Resolution (org.springframework.security:spring-security-web): 6.1.7

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.9

Fix Resolution (org.springframework.security:spring-security-core): 6.1.7

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.9

In order to enable automatic remediation, please create workflow rules

CVE-2023-34035 ### Vulnerable Library - spring-security-config-6.1.0.jar

Spring Security

Library home page: https://spring.io/projects/spring-security

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/springframework/security/spring-security-config/6.1.0/spring-security-config-6.1.0.jar

Dependency Hierarchy: - spring-boot-starter-security-3.1.0.jar (Root Library) - :x: **spring-security-config-6.1.0.jar** (Vulnerable Library)

Found in HEAD commit: 59431581b1bb97286217d47b9b8d32586fa2dc9e

Found in base branch: main

### Reachability Analysis This vulnerability is potentially reachable ``` org.owasp.webgoat.webwolf.WebSecurityConfig (Application) -> org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration$DefaultPasswordEncoderAuthenticationManagerBuilder (Extension) -> org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration (Extension) -> org.springframework.security.config.annotation.web.configurers.DefaultLoginPageConfigurer (Extension) ... -> org.springframework.security.config.annotation.web.configurers.CsrfConfigurer (Extension) -> org.springframework.security.config.annotation.web.configurers.CsrfConfigurer$IgnoreCsrfProtectionRegistry (Extension) -> ❌ org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry (Vulnerable Component) ```

### Vulnerability Details

Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authorization rule misconfiguration if the application uses requestMatchers(String) and multiple servlets, one of them being Spring MVC’s DispatcherServlet. (DispatcherServlet is a Spring MVC component that maps HTTP endpoints to methods on @Controller-annotated classes.) Specifically, an application is vulnerable when all of the following are true: * Spring MVC is on the classpath * Spring Security is securing more than one servlet in a single application (one of them being Spring MVC’s DispatcherServlet) * The application uses requestMatchers(String) to refer to endpoints that are not Spring MVC endpoints An application is not vulnerable if any of the following is true: * The application does not have Spring MVC on the classpath * The application secures no servlets other than Spring MVC’s DispatcherServlet * The application uses requestMatchers(String) only for Spring MVC endpoints

Publish Date: 2023-07-18

URL: CVE-2023-34035

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

### 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://github.com/advisories/GHSA-4vpr-xfrp-cj64

Release Date: 2023-07-18

Fix Resolution (org.springframework.security:spring-security-config): 6.1.2

Direct dependency fix Resolution (org.springframework.boot:spring-boot-starter-security): 3.1.2

In order to enable automatic remediation, please create workflow rules


In order to enable automatic remediation for this issue, please create workflow rules

mend-for-github-com[bot] commented 1 month ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 month ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

mend-for-github-com[bot] commented 1 week ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 week ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.