hugh-mend / WebGoat

WebGoat is a deliberately insecure application
https://owasp.org/www-project-webgoat/
Other
0 stars 0 forks source link

spring-boot-starter-security-3.1.0.jar: 5 vulnerabilities (highest severity is: 9.1) #11

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

mend-for-github-com[bot] commented 1 year 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-config/6.1.0/spring-security-config-6.1.0.jar

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (spring-boot-starter-security version) Remediation Possible**
CVE-2024-38821 Critical 9.1 spring-security-web-6.1.0.jar Transitive 3.2.11
CVE-2023-34034 Critical 9.1 spring-security-config-6.1.0.jar Transitive 3.1.2
CVE-2024-22257 High 8.2 spring-security-core-6.1.0.jar Transitive 3.1.10
CVE-2024-22234 High 7.4 detected in multiple dependencies Transitive 3.1.9
CVE-2023-34035 High 7.3 spring-security-config-6.1.0.jar Transitive 3.1.2

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

Details

CVE-2024-38821 ### Vulnerable Library - spring-security-web-6.1.0.jar

Spring Security

Library home page: https://spring.io

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)

Found in base branch: main

### Vulnerability Details

Spring WebFlux applications that have Spring Security authorization rules on static resources can be bypassed under certain circumstances. For this to impact an application, all of the following must be true: It must be a WebFlux application, It must be using Spring's static resources support, and it must have a non-permitAll authorization rule applied to the static resources support.

Publish Date: 2024-10-28

URL: CVE-2024-38821

### CVSS 3 Score Details (9.1)

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: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

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

Release Date: 2024-06-20

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

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

In order to enable automatic remediation, please create workflow rules

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

Spring Security

Library home page: https://spring.io

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 base branch: main

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

### CVSS 3 Score Details (9.1)

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: None

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

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 base branch: main

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

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

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

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 base branch: main

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

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

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 base branch: main

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

### CVSS 3 Score Details (7.3)

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

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 2 months 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 2 months 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.