Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-768

Introduce CSRF protection for the ACTION_PHASE via Spring Security

    XMLWordPrintableJSON

Details

    Description

      This feature will add Cross-Site Request Forgery CSRF protection for the ACTION_PHASE of the portlet lifecycle via Spring Security.

      Specifically, it will ensure that the Spring Security _csrf parameter is added to every javax.portlet.ActionURL generated by Pluto's portlet container. It will also utilize the "springSecurityFilterChain" in order to verify that the value of the _csrf parameter is the correct value before invoking the ACTION_PHASE of the portlet lifecycle. This works for normal ActionURLs as well as Portlet Hub "Ajax" ActionURLs and "Partial" ActionURLs.

      This feature does not secure any other phases of the portlet lifecycle (such as the RESOURCE_PHASE). It is important to note that if a portlet developer uses an XmlHttpRequest (XHR) to submit a form via HTTP POST with a javax.portlet.ResourceURL, then it is still incumbent upon the portlet developer to leverage some kind of CSRF protection.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: