Description
The Easy Digital Downloads plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.6.7. This is due to missing nonce verification in the `handle_oauth_redirect()` function, which is registered on the `admin_init` hook and processes Square OAuth tokens from a user-supplied GET parameter without any CSRF token validation. This makes it possible for unauthenticated attackers to overwrite the store's Square payment gateway credentials by tricking a logged-in administrator into clicking a crafted link, potentially resulting in payment account hijacking.
Problem types
CWE-352 Cross-Site Request Forgery (CSRF)
Product status
Any version
Timeline
| 2026-04-30: | Vendor Notified |
| 2026-05-27: | Disclosed |
Credits
M Indra Purnama
References
www.wordfence.com/...-459c-4cad-823b-2a94ac901410?source=cve
plugins.trac.wordpress.org/...Gateways/Square/Connection.php
plugins.trac.wordpress.org/...Gateways/Square/Connection.php
plugins.trac.wordpress.org/...rc/Gateways/Square/Gateway.php
plugins.trac.wordpress.org/...rc/Gateways/Square/Gateway.php
plugins.trac.wordpress.org/...Gateways/Square/Connection.php
plugins.trac.wordpress.org/...Gateways/Square/Connection.php
plugins.trac.wordpress.org/...ownloads&sfp_email=&sfph_mail=