crosspeaksoftware/woo-address-book

AJAX functions accessible to those not logged in

Closed this issue · 4 comments

While reviewing the security changes made in the latest version of the plugin we noticed that the AJAX accessible functions are registered to be accessible to those not logged in to WordPress. It looks like those might only be intended to be accessed by those logged in to WordPress, if so, then removing the nopriv registrations would be a good idea.

Thanks for reviewing the plugin!

You are correct that these actions did require the user to be logged in to do anything so they are not needed with the nopriv flag.

I've gone and removed the nopriv versions.

@PluginVulnerabilities I see you also posted about this plugin here: https://www.pluginvulnerabilities.com/2019/08/26/vulnerability-details-cross-site-request-forgery-csrf-in-woocommerce-address-book/ but the post is behind a paywall for your subscription.

Would you be able to send the contents of the post to me? matt@hallme.com

That post just details the security changes made in version 1.6.0, so you should already know the information mentioned there.

I figured that it what it was about, but was curious to see the points that were written about it.