Avoid Action Mapping based on wildcards with Struts 2.3.14.2 and older versions | CAST Appmarq

Avoid Action Mapping based on wildcards with Struts 2.3.14.2 and older versions

CRITICAL

Rule Definition
The software constructs all or part of an expression language (EL) statement in a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

Remediation
It is strongly recommended to upgrade to Struts 2.3.14.3. if not possible, You should change the definition by setting up a new constant in struts.xml as below:

Violation Code Sample
<action name="MyAction_*" class="MyActionClass" method="{1}">
Fixed Code Sample
upgrade to Struts 2.3.14.3.

Reference
https://cwe.mitre.org/data/definitions/917 https://cwiki.apache.org/confluence/display/WW/S2-015 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2135 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2134 OWASP Top Ten 2017 Category A1 - Injection

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
PCI-DSS4-Requirement-6.2.4 - Software engineering techniques or other methods are defined and in use by software development personnel to prevent or mitigate common software attacks and related vulnerabilities

About CAST Appmarq

CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.

Benchmark Statistics

Global Compliance

nan%

Total Violations
0
Total Opportunities
0
Average Violations / App.
nan
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Financial Services

100.00%

Insurance

100.00%

Select from drop-down

100.00%