Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution

Published on 16 Jun 2021
Vulnerability

Remote Code Evaluation will result in the entire web application and web server being compromised.Here RCE is performed over Apache Struts 2 . Remote attackers can execute arbitrary OGNL expressions through a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix in Apache Struts 2.0.0 through 2.3.15.

Impact

A lot of information disclosure can happen.The credibility of the system has been completely compromised.The entire system is compromised as a result of a total lack of system security.The affected resource has been fully shut down.The intruder has the ability to make the resource entirely unusable.

Mitigation / Precaution

In order to patch this vulnerability, please install the official patch Apache Struts 2 made available for supported, vulnerable instances.

Sooraj V Nair
Written by
Cyber Security Engineer

Sooraj was probably the kid who opened up a remote control just to see what was inside, then had to figure out how to put it back together before anyone noticed. That curiosity eventually found its way into cybersecurity, where breaking things is actually part of the job description. Today, he explores vulnerabilities, analysis threats, and helps build safer digital spaces. His favourite question remains the same: “What happens if I try this?”

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo