Child pages
  • S2-030

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Who should read this

All Struts 2 developers and users

Impact of vulnerability

Possible XSS vulnerability

Maximum security rating

Low

Recommendation

Do not expose parts of Locale object constructed by I18NInterceptor as it may contain user specific string which may leads to XSS vulnerability. Alternatively upgrade to Struts 2.3.2728.

Affected Software

Struts 2.0.0 - Struts Struts 2.3.24.1

Reporter

Paolo Perliti paolo dot perliti at miliaris dot it - Miliaris 

CVE Identifier

CVE-2016-2162

...

If you want present language selected by user based on I18NInterceptor always escape the string before presenting it to the user. Alternatively upgrade to Struts 2.3.2728.

Backward compatibility

No issues expected when upgrading to Struts 2.3.2728.

Workaround

When needed you can use StringEscapeUtils from the Apache Commons to escape the string.