Vulnerabilities

15 via 40 paths

Dependencies

122

Source

GitHub

Commit

574f8b71

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 15
  • 3
Severity
  • 4
  • 11
  • 3
Status
  • 18
  • 0
  • 0

high severity

Uncontrolled Recursion

  • Vulnerable module: org.apache.commons:commons-lang3
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2, org.springdoc:springdoc-openapi-webmvc-core@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.6.4.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-webmvc-core@1.6.4.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.6.4.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.6.4.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-webmvc-core@1.6.4.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 org.apache.commons:commons-lang3@3.10
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.6.4.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the ClassUtils.getClass function. An attacker can cause the application to terminate unexpectedly by providing excessively long input values.

Remediation

Upgrade org.apache.commons:commons-lang3 to version 3.18.0 or higher.

References

high severity

Path Traversal

  • Vulnerable module: org.springframework:spring-webmvc
  • Introduced through: org.springdoc:springdoc-openapi-webmvc-core@1.4.2, org.springdoc:springdoc-openapi-ui@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-webmvc@4.0.0-M3 org.springframework:spring-webmvc@5.2.6.RELEASE

Overview

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Path Traversal via the WebMvc.fn and WebFlux.fn frameworks. An attacker can access any file on the file system that is also accessible to the process in which the Spring application is running by crafting malicious HTTP requests.

Note:

This is only exploitable if the web application uses RouterFunctions to serve static resources and resource handling is explicitly configured with a FileSystemResource location.

Workaround

This vulnerability can be mitigated by using the Spring Security HTTP Firewall or running the application on Tomcat or Jetty.

Remediation

Upgrade org.springframework:spring-webmvc to version 6.1.13 or higher.

References

high severity

Path Traversal

  • Vulnerable module: org.springframework:spring-webmvc
  • Introduced through: org.springdoc:springdoc-openapi-webmvc-core@1.4.2, org.springdoc:springdoc-openapi-ui@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-webmvc@4.0.0-M3 org.springframework:spring-webmvc@5.2.6.RELEASE

Overview

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Path Traversal through the functional web frameworks WebMvc.fn or WebFlux.fn. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible.

Note: This is similar to CVE-2024-38816, but with different input.

Remediation

Upgrade org.springframework:spring-webmvc to version 6.1.14 or higher.

References

high severity

Improper Access Control

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2 and org.springframework.boot:spring-boot-starter-security@4.0.0-M3

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-config@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-web@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Improper Access Control when the application uses AuthenticatedVoter directly and a null authentication parameter is passed to it. Exploiting this vulnerability resulting in an erroneous true return value.

Note

Users are not affected if:

  1. The application does not use AuthenticatedVoter#vote directly.

  2. The application does not pass null to AuthenticatedVoter#vote.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.7.12, 5.8.11, 6.0.10, 6.1.8, 6.2.3 or higher.

References

medium severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: commons-io:commons-io
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2, org.springdoc:springdoc-openapi-webmvc-core@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.4.2.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-webmvc-core@1.4.2.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.4.2.

Overview

commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') through the XmlStreamReader class. An attacker can cause the application to consume excessive CPU resources by sending specially crafted XML content.

Remediation

Upgrade commons-io:commons-io to version 2.14.0 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: org.springframework:spring-webmvc
  • Introduced through: org.springdoc:springdoc-openapi-webmvc-core@1.4.2, org.springdoc:springdoc-openapi-ui@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-webmvc@4.0.0-M3 org.springframework:spring-webmvc@5.2.6.RELEASE

Overview

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Denial of Service (DoS) via MVC controller @RequestBody byte[] method parameters.

Note: This vulnerable open source versions are no longer supported and the fixed version 5.3.42 is only available for the commercial release.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade org.springframework:spring-webmvc to version 6.0.0 or higher.

References

medium severity

Authorization Bypass

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2 and org.springframework.boot:spring-boot-starter-security@4.0.0-M3

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-config@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-web@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: org.webjars:swagger-ui
  • Introduced through: org.springdoc:springdoc-openapi-ui@1.4.2

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.webjars:swagger-ui@3.27.0
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.6.0.

Overview

org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ?url parameter, which was intended to allow displaying remote OpenAPI definitions. This functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.

NOTE: This vulnerability has also been identified as: CVE-2021-46708

Remediation

Upgrade org.webjars:swagger-ui to version 4.1.3 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: org.webjars:swagger-ui
  • Introduced through: org.springdoc:springdoc-openapi-ui@1.4.2

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.webjars:swagger-ui@3.27.0
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.6.0.

Overview

org.webjars:swagger-ui is a WebJar for Swagger UI npm library.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ?url parameter, which was intended to allow displaying remote OpenAPI definitions. This functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.

NOTE: This vulnerability has also been identified as: CVE-2018-25031

Remediation

Upgrade org.webjars:swagger-ui to version 4.1.3 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: commons-io:commons-io
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2, org.springdoc:springdoc-openapi-webmvc-core@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.4.2.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-webmvc-core@1.4.2.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springdoc:springdoc-openapi-common@1.4.2 io.swagger.core.v3:swagger-integration@2.1.2 io.swagger.core.v3:swagger-core@2.1.2 commons-io:commons-io@2.6
    Remediation: Upgrade to org.springdoc:springdoc-openapi-ui@1.4.2.

Overview

commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.

Affected versions of this package are vulnerable to Directory Traversal via calling the method FileNameUtils.normalize using an improper string like //../foo or \\..\foo, which may allow access to files in the parent directory.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade commons-io:commons-io to version 2.7 or higher.

References

medium severity

Integer Overflow or Wraparound

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2 and org.springframework.boot:spring-boot-starter-security@4.0.0-M3

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springframework.security:spring-security-core@5.3.2.RELEASE
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.5.9.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-config@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-web@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound when using the BCrypt class with the maximum work factor (31). In such a case, the encoder does not perform any salt rounds due to the overflow.

Note:

The default settings are not affected by this CVE.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.4.11 or higher.

References

medium severity

Privilege Escalation

  • Vulnerable module: org.springframework.security:spring-security-core
  • Introduced through: org.springdoc:springdoc-openapi-security@1.4.2 and org.springframework.boot:spring-boot-starter-security@4.0.0-M3

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-security@1.4.2 org.springframework.security:spring-security-core@5.3.2.RELEASE
    Remediation: Upgrade to org.springdoc:springdoc-openapi-security@1.5.5.
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-config@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-security@4.0.0-M3 org.springframework.security:spring-security-web@7.0.0-M3 org.springframework.security:spring-security-core@5.3.2.RELEASE

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Privilege Escalation. It fails to save the SecurityContext if it has changed more than once in a single request. The SecurityContext can fail to save to the HttpSession if a developer changes the SecurityContext twice in a single request when both of the following conditions are met: First the developer must change the SecurityContext before the HttpResponse is committed and then the HttpResponse must be committed before the SecurityContextPersistenceFilter completes. Then the developer must attempt to change the SecurityContext again before the SecurityContextPersistenceFilter completes. A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.

Remediation

Upgrade org.springframework.security:spring-security-core to version 5.4.4, 5.3.8.RELEASE, 5.2.9.RELEASE or higher.

References

medium severity

Dual license: EPL-1.0, LGPL-2.1

  • Module: ch.qos.logback:logback-classic
  • Introduced through: org.springframework.boot:spring-boot-starter@4.0.0-M3, org.springframework.boot:spring-boot-starter-actuator@4.0.0-M3 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-actuator@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-mail@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-validation@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-data-mongodb@4.0.0-M3 org.springframework.boot:spring-boot-starter-mongodb@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-starter-jackson@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-starter-tomcat@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18

Dual license: EPL-1.0, LGPL-2.1

medium severity

Dual license: EPL-1.0, LGPL-2.1

  • Module: ch.qos.logback:logback-core
  • Introduced through: org.springframework.boot:spring-boot-starter@4.0.0-M3, org.springframework.boot:spring-boot-starter-actuator@4.0.0-M3 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-actuator@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-mail@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-security@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-validation@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-data-mongodb@4.0.0-M3 org.springframework.boot:spring-boot-starter-mongodb@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-starter-jackson@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-starter-tomcat@4.0.0-M3 org.springframework.boot:spring-boot-starter@4.0.0-M3 org.springframework.boot:spring-boot-starter-logging@4.0.0-M3 ch.qos.logback:logback-classic@1.5.18 ch.qos.logback:logback-core@1.5.18

Dual license: EPL-1.0, LGPL-2.1

medium severity

EPL-1.0 license

  • Module: junit:junit
  • Introduced through: junit:junit@4.13.2

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 junit:junit@4.13.2

EPL-1.0 license

low severity

Creation of Temporary File in Directory with Insecure Permissions

  • Vulnerable module: com.google.guava:guava
  • Introduced through: com.google.guava:guava@29.0-jre

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 com.google.guava:guava@29.0-jre
    Remediation: Upgrade to com.google.guava:guava@32.0.0-jre.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the use of Java's default temporary directory for file creation in FileBackedOutputStream. Other users and apps on the machine with access to the default Java temporary directory can access the files created by this class. This more fully addresses the underlying issue described in CVE-2020-8908, by deprecating the permissive temp file creation behavior.

NOTE: Even though the security vulnerability is fixed in version 32.0.0, the maintainers recommend using version 32.0.1, as version 32.0.0 breaks some functionality under Windows.

Remediation

Upgrade com.google.guava:guava to version 32.0.0-android, 32.0.0-jre or higher.

References

low severity

Information Disclosure

  • Vulnerable module: com.google.guava:guava
  • Introduced through: com.google.guava:guava@29.0-jre

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 com.google.guava:guava@29.0-jre
    Remediation: Upgrade to com.google.guava:guava@30.0-jre.

Overview

com.google.guava:guava is a set of core libraries that includes new collection types (such as multimap and multiset,immutable collections, a graph library, functional types, an in-memory cache and more.

Affected versions of this package are vulnerable to Information Disclosure. The file permissions on the file created by com.google.common.io.Files.createTempDir allow an attacker running a malicious program co-resident on the same machine to steal secrets stored in this directory. This is because, by default, on unix-like operating systems the /tmp directory is shared between all users, so if the correct file permissions aren't set by the directory/file creator, the file becomes readable by all other users on that system.

PoC

File guavaTempDir = com.google.common.io.Files.createTempDir();
System.out.println("Guava Temp Dir: " + guavaTempDir.getName());
runLS(guavaTempDir.getParentFile(), guavaTempDir); // Prints the file permissions -> drwxr-xr-x
File child = new File(guavaTempDir, "guava-child.txt");
child.createNewFile();
runLS(guavaTempDir, child); // Prints the file permissions -> -rw-r--r--

For Android developers, choosing a temporary directory API provided by Android is recommended, such as context.getCacheDir(). For other Java developers, we recommend migrating to the Java 7 API java.nio.file.Files.createTempDirectory() which explicitly configures permissions of 700, or configuring the Java runtime's java.io.tmpdir system property to point to a location whose permissions are appropriately configured.

Remediation

There is no fix for com.google.guava:guava. However, in version 30.0 and above, the vulnerable functionality has been deprecated. In oder to mitigate this vulnerability, upgrade to version 30.0 or higher and ensure your dependencies don't use the createTempDir or createTempFile methods.

References

low severity

Improper Handling of Case Sensitivity

  • Vulnerable module: org.springframework:spring-webmvc
  • Introduced through: org.springdoc:springdoc-openapi-webmvc-core@1.4.2, org.springdoc:springdoc-openapi-ui@1.4.2 and others

Detailed paths

  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springdoc:springdoc-openapi-ui@1.4.2 org.springdoc:springdoc-openapi-webmvc-core@1.4.2 org.springframework:spring-webmvc@5.2.6.RELEASE
  • Introduced through: IncPlusPlus/betterstat-server@IncPlusPlus/betterstat-server#574f8b71fe4006352c91f39520ba3e3fa180a118 org.springframework.boot:spring-boot-starter-web@4.0.0-M3 org.springframework.boot:spring-boot-webmvc@4.0.0-M3 org.springframework:spring-webmvc@5.2.6.RELEASE

Overview

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to String.toLowerCase() having some Locale dependent exceptions that could potentially result in fields not protected as expected.

Note:

The fix for CVE-2022-22968 made disallowedFields patterns in DataBinder case insensitive.

This vulnerability was also fixed in commercial versions 5.3.41 and 6.0.25.

Remediation

Upgrade org.springframework:spring-webmvc to version 6.1.14 or higher.

References