Apache Struts Arbitrary File Upload Vulnerability S2-067 (CVE-2024-53677)

Apache Struts Arbitrary File Upload Vulnerability S2-067 (CVE-2024-53677)

dezembro 16, 2024 | NSFOCUS

Overview

Recently, NSFOCUS CERT monitored that Apache released a security bulletin, fixing the Apache Struts arbitrary file upload vulnerability S2-067 (CVE-2024-53677). Due to a logical defect in the file upload function, an unauthenticated attacker can perform path traversal by controlling the file upload parameters, thereby uploading malicious files to achieve remote code execution. The CVSS score is 9.5. Relevant users are requested to take measures for protection as soon as possible.

Reference Link: https://cwiki.apache.org/confluence/display/WW/S2-067

Scope of Impact

Affected Versions

  • 2.0.0 <= Apache Struts <= 2.3.37
  • 2.5.0 <= Apache Struts <= 2.5.33
  • 6.0.0 <= Apache Struts <= 6.3.0.2

Note: Applications that do not enable the FileUploadInterceptor component are not affected by this vulnerability.

Unaffected Versions

  • Apache Struts >= 6.4.0

Detection

Manual detection

For projects packaged with maven, the current used Struts2 version can be viewed through pom.xml:

The Struts version can also be viewed by checking the core package in the lib directory. If the current version is within the affected range, there may be a security risk.

Mitigation

The official has released a new version to fix this vulnerability. Affected users are requested to upgrade the version for protection as soon as possible. Download link: https://struts.apache.org/download.cgi

Note: Starting from Struts 6.4.0, users need to use ActionFileUploadInterceptor as the file upload component.

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, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.

Founded in 2000, NSFOCUS operates globally with over 4000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.

Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.