Vulnerability Description
Security researchers from NSFOCUS found a directory traversal vulnerability (CVE-2020-5405) in the Spring Cloud Config component. On February 26, Spring released a security bulletin to announce this vulnerability and also expressed appreciation to NSFOCUS.
Attackers could exploit this vulnerability to read files in an unauthorized way through directory traversal. Affected users should upgrade the spring-cloud-config-server to a version that has this vulnerability fixed.
The following is a screenshot of attack success
For details of this vulnerability, visit the following link:
https://pivotal.io/security/cve-2020-5405
Scope of Impact
Affected Versions
Spring Cloud Config
- 2.0 to 2.2.1
- 1.0 to 2.1.6
Unaffected Versions
Spring Cloud Config
- 2.2
- 1.7
Vulnerability Detection
- Version Check
Developers are advised to check applications’ reference of the Spring Cloud Config component and check the current version of this component. Here, the Maven project is used as an example. We should check pom.xml for the current version of the Spring Cloud Config component. If the current version is within the affected scope, this project may be exposed to security risks.
Mitigation
- Official Update
Spring has fixed this vulnerability in the latest version. Affected users are advised to upgrade as soon as possible. Developers can upgrade and compile the Spring Cloud Config component by configuring Maven as follows:
Users of Spring Cloud Config 2.1.x should upgrade to 2.1.7:
<!– https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-config-server –>
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId> <version>2.1.7.RELEASE</version> </dependency> |
Users of Spring Cloud Config 2.2.x should upgrade to 2.2.2:
<!– https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-config-server –>
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId> <version>2.2.2.RELEASE</version> </dependency> |
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 Information Technology Co. Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.