Lucene search

K
osvGoogleOSV:GHSA-J68F-8H6P-9H5Q
HistoryApr 22, 2022 - 12:24 a.m.

Struts ParameterInterceptor vulnerability allows remote command execution

2022-04-2200:24:08
Google
osv.dev
12

0.952 High

EPSS

Percentile

99.3%

Regular expression in ParametersInterceptor matches top['foo'](0) as a valid expression, which OGNL treats as (top['foo'])(0) and evaluates the value of ‘foo’ action parameter as an OGNL expression. This lets malicious users put arbitrary OGNL statements into any String variable exposed by an action and have it evaluated as an OGNL expression and since OGNL statement is in HTTP parameter value attacker can use blacklisted characters (e.g. #) to disable method execution and execute arbitrary methods, bypassing the ParametersInterceptor and OGNL library protections.