Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1489478 - (CVE-2017-12611) CVE-2017-12611 struts: RCE attack when using an unintentional expression in Freemarker tag instead of string literals
CVE-2017-12611 struts: RCE attack when using an unintentional expression in F...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20170907,repo...
: Security
Depends On:
Blocks: 1489481
  Show dependency treegraph
 
Reported: 2017-09-07 10:20 EDT by Adam Mariš
Modified: 2018-02-12 06:27 EST (History)
28 users (show)

See Also:
Fixed In Version: struts 2.3.34, struts 2.5.12
Doc Type: If docs needed, set a value
Doc Text:
It was found that Freemarker in Struts would permit using read-only properties in value assignment of tag expressions. An attacker could use this to execute arbitrary code.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-30 15:52:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2017-09-07 10:20:19 EDT
When using expression literals or forcing expression in Freemarker tags (see example below) and using request values, it can lead to RCE attack.

<@s.hidden name="redirectUri" value=redirectUri />
<@s.hidden name="redirectUri" value="${redirectUri}" />

In both cases a writable property is used in the value attribute and in both cases this is threatened as an expression by Freemarker.

Affected versions: Struts 2.0.1 - Struts 2.3.33, Struts 2.5 - Struts 2.5.10

External References:

https://struts.apache.org/docs/s2-053.html
Comment 1 Chess Hazlett 2017-09-07 11:58:24 EDT
Statement:

This issue did not affect any of the Red Hat products as they did not include the Apache Struts 2 package. Furthermore, Red Hat Enterprise Linux versions 6 and 7 do not ship any Struts packages.

Note You need to log in before you can comment on or make changes to this bug.