IBM Support

PI89168: PROTECTED-VIEW NOT WORKING IN LIBERTY 16.0.0.4

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • In development of the application using JSF, The value of
    "javax.face.
    ViewState" is set to input field of hidden.
    This means for implicit prevention of CSRF.
    When the value of "javax.face.ViewState" is falsified
    maliciously, the
    application can prevent CSRF attack by displaying the error
    message.
    However, when this value is set to "stateless", the
    application
    can't
    prevent CSRF attack due to be regarded as stateless view.
    
    To deal with this problem, the statement of protected-view
    is
    set in
    faces-config.xml, though, that doesn't work in WAS liberty
    16.0.0.4.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  and Traditional Profile users of JavaServer *
    *                  Faces (JSF) Apache MyFaces 2.2              *
    ****************************************************************
    * PROBLEM DESCRIPTION: JSF 2.2 does not throw an exception     *
    *                      when the value of the                   *
    *                      javax.faces.ViewState hidden input is   *
    *                      manually set to stateless               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When you are in a stateful view, if you manually modify the
    value attribute of hidden input ?javax.faces.ViewState? to be
    "stateless", no exception is thrown.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI89168

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-10-20

  • Closed date

    2017-11-06

  • Last modified date

    2017-11-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R855 PSY

       UP



Document information

More support for: WebSphere Application Server

Software version: 855

Reference #: PI89168

Modified date: 06 November 2017


Translate this page: