bitpay / gravityforms-plugin

BitPay bitcoin payment plugin for Gravity Forms
https://github.com/bitpay/gravityforms-plugin
MIT License
11 stars 15 forks source link

Fixes security issue with ajax calls #3

Closed samuelbohler closed 9 years ago

samuelbohler commented 9 years ago

WordPress's wp-admin/admin-ajax.php doesn't check permissions of users to verify administrator privileges. Therefore, any logged in user could utilize the ajax calls for managing BitPay tokens used by the plugin.

All ajax calls now include nonces to protect against CSRF and check the user permissions for the ability to manage options.