QID 379106
Date Published: 2023-12-07
QID 379106: Apache Struts2 Remote Code Execution (S2-066)
Apache Struts is an open-source Model-View-Controller (MVC) framework for creating elegant, modern Java web applications.
An unauthenticated, remote attacker could exploit this vulnerability by manipulating file upload parameters to enable a path traversal condition. Uploading a malicious file by leveraging this vulnerability could lead to execution of malicious code on the targeted system.
Affected Software:
Struts 2.0.0 - Struts 2.3.37 (EOL)
Struts 2.5.0 - Struts 2.5.32
Struts 6.0.0 - Struts 6.3.0
QID Detection Logic (Unix):
Linux: Detection relies on ps command and find command to locate struts jar file. Struts file name includes the version.
This QID for Linux authentication will check for all Apache struts affected versions including End-of-Life (EOL).
QID Detection Logic (Windows):
This QID retrieves the Tomcat installation location from the registry and checks for the 'struts2-rest-showcase' application directory in the webapps for the struts jar file. Please note that this QID can check only the mentioned directory for the struts jar file. This QID supports only Tomcat 10.1, Tomcat 9.0 and Tomcat 8.5 installations.
This QID for Windows authentication will not check for Apache struts End Of Life (EOL) versions.
Successful exploitation allows an unauthenticated, remote attacker to execute arbitrary code on the targeted system.
CVEs related to QID 379106
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| S2-066 |
|