Visualizzazione del contenuto dell'aiuto per la versione :

In addition to the Apache Sling Referrer Filter, Adobe also provides a new CSRF Protection Framework to protect against this type of attack.

The framework makes use of tokens to guarantee that the client request is legitimate. The tokens are generated when the form is sent to the client and validated when the form is sent back to the server.

Requirements

Dependencies

Any component that relies on the granite.jquery dependency will benefit from the CSRF Protection Framework automatically. If this is not the case for any of your components, you must declare a dependency to granite.csrf.standalone before you can use the framework.

Replicating the Crypto Key

In order to make use of the tokens, you need to replicate the /etc/keys/hmac binary to all of the instances in your deployment. A convenient way to copy the HMAC key to all the instances is to create a package containing the key and install it via the Package Manager on all the instances.

Nota:

Make sure you also make the necessary Dispatcher configuration changes in order to use the CSRF Protection Framework.

Nota:

If you use the manifest cache with your web application, make sure you add "*" to the manifest in order to make sure the token does not take the CSRF token generation call offline. For more information, consult this link.

For more information on CSRF attacks and ways to mitigate them, see the Cross-Site Request Forgery OWASP page.

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online