Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3668

Vulnerability: User input is evaluated as an OGNL expression when there's a conversion error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 2.2.3.1
    • Core Interceptors
    • None
    • Struts 2.2.3
      Tomcat 7.0.19

    Description

      1. Run "Struts Showcase".
      2. Click "Validation".
      3. Click "Field Validators".
      4. Type "<' + #application + '>" in the "Integer Validator Field".
      5. Click "Submit".
      6. You can get all "application" scoped variables in the "Integer Validator Field".

      Please fix ConversionErrorInterceptor and RepopulateConversionErrorFieldValidatorSupport.

      com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor

      87: return "'" + value + "'";

      com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport

      175: fakeParams.put(fullFieldName, "'" + tmpValue[0] + "'");

      182: fakeParams.put(fullFieldName, "'" + tmpValue + "'");

      Attachments

        Activity

          People

            maurizio.cucchiara Maurizio Cucchiara
            slopetown Hideyuki Suzumi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: