GHSA-j68f-8h6p-9h5q

    Dashboard / Vulnerabilities / GHSA-j68f-8h6p-9h5q

    GHSA-j68f-8h6p-9h5q

    Published: 22 Apr 2022Last Modified: 16 Feb 2024
    Aliases:

    Summary: Struts ParameterInterceptor vulnerability allows remote command execution

    Details: 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.

    Affected packages

    Package

    Name: org.apache.struts:struts2-core

    Purl: pkg:maven/org.apache.struts/struts2-core

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 2.0.0
    Fixed -2.3.1.2

    Affected versions

    2.0.11
    2.0.11.1
    2.0.11.2
    2.0.12
    2.0.14
    2.0.5
    2.0.6
    2.0.8
    2.0.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-j68f-8h6p-9h5q | CVE-DB