CVE-2012-0391
CRITICAL KEVApache Struts < 2.2.3.1 - Remote Code Execution via ExceptionDelegator OGNL Expression Injection
Title source: llmExploitation Summary
CVE-2012-0391 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added January 21, 2022.
EIP tracks 3 public exploits from researchers including Metasploit, SEC Consult, Johannes Dahse, Andreas Nusser, juan vazquez, sinn3r, mihi, including a Metasploit module exploits/multi/http/struts_code_exec_exception_delegator.
AI-analyzed exploit summary This Metasploit module exploits CVE-2012-0391, a remote command execution vulnerability in Apache Struts <= 2.2.1.1. It leverages OGNL expression injection during exception handling to execute arbitrary commands on both Windows and Linux targets.
Description
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during certain exception handling for mismatched data types of properties, which allows remote attackers to execute arbitrary Java code via a crafted parameter.
Exploits (3)
This Metasploit module exploits CVE-2012-0391, a remote command execution vulnerability in Apache Struts <= 2.2.1.1. It leverages OGNL expression injection during exception handling to execute arbitrary commands on both Windows and Linux targets.
The exploit demonstrates multiple critical vulnerabilities in Apache Struts2, including remote command execution via ExceptionDelegator, CookieInterceptor, and DebuggingInterceptor, as well as arbitrary file overwrite via ParametersInterceptor. These vulnerabilities arise from OGNL expression injection and improper parameter filtering.
This Metasploit module exploits a remote command execution vulnerability in Apache Struts versions < 2.2.1.1 by injecting OGNL expressions via the ExceptionDelegator, allowing arbitrary Java code execution. It supports multiple platforms (Windows, Linux, Java) and includes stagers for payload delivery.
References (8)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H