WordPress nonces for not-logged-in users for security reason?
-
I was reading the following article: https://konstantin.blog/2012/nonces-on-the-front-end-is-a-bad-idea/ which raises some questions. In the comments it’s told that:
One of the Automatticians at the VIP Developer Workshop told me that I should always (always) use a security nonce for ajax requests, even for not-logged-in users and requests that do not result in database or filesystem modification.
My theme uses an ajax modal login / registration form in the frontend, where a nonce verification is implemented for the registration process – but not for the login one. Does that really make sense?
Even wordpress does not use nonces for login / registration in wp-login.php. Woocommerce on the other hand does use nonces in the login / registration forms. This is really confusing – what is the best practice – the wordpress- or the woocommerce way? From a security point of view, does it make sense at all to use nonces for not-logged-in users in the login / registration process?
- The topic ‘WordPress nonces for not-logged-in users for security reason?’ is closed to new replies.