Spring Boot Security Bypass Vulnerability (CVS-2023-20873) Notice

Spring Boot Security Bypass Vulnerability (CVS-2023-20873) Notice

abril 25, 2023 | NSFOCUS

Overview

Recently, NSFOCUS CERT found that Spring officially issued a security notice, which fixed a Spring Boot authentication bypass vulnerability (CVE-2023-20873). When Spring Boot is deployed to Cloud Foundry and there is code/cloudFoundryapplication/* * that can handle matching requests, and used in conjunction with a catch all request mapping that matches/* *, unauthenticated remote attackers can achieve security bypass through wildcard pattern matching on Cloud Foundry. Please take measures to protect affected users as soon as possible.

Spring Boot is a rapid development framework, which is based on the Spring Framework and aims to simplify the configuration and deployment of Spring applications.

CVS 2023-20873 Vulnerability Status:

Vulnerability DetailsVulnerability PoCVulnerability EXPUtilization in the wilderness
UnpublishedUnpublishedUnpublishedNot currently present

Reference link: https://spring.io/security/cve-2023-20873

Scope of Impact

Affected version

  • 3.0.0 <= Spring Boot <= 3.0.5
  • 2.7.0 <= Spring Boot <= 2.7.10
  • Unsupported old version

Unaffected version

  • Spring Boot >= 3.0.6
  • Spring Boot >= 2.7.11

Detection

View the current Spring Boot version number in the version tag of pom.xml:

If the Spring Boot version number is within the affected range, there may be a security risk.

Mitigation

Official upgrade

At present, the official security version has been released to fix this vulnerability. It is recommended that affected users upgrade the version as soon as possible for protection. The reference link is as follows:

https://github.com/spring-projects/spring-boot/tags

Temporary measure

Disable the Cloud Foundry executor by adding the following code to the configuration file:

management.cloudfoundry.enabled=false

Statement

This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.

About NSFOCUS

NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.

NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).

A wholly owned subsidiary of NSFOCUS Technologies Group Co., Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.