-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust nonce logic #1680
Adjust nonce logic #1680
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release #1680 +/- ##
==========================================
Coverage 20.13% 20.13%
Complexity 2410 2410
==========================================
Files 46 46
Lines 9890 9890
==========================================
Hits 1991 1991
Misses 7899 7899 ☔ View full report in Codecov by Sentry. |
But doesn't that mean that the cached nonce will still be an issue for sites not using recaptcha? Also, I don't see any added protection there, since the nonce is part of the form as a hidden field anyways |
It's at least as much protection as the honeypot field! :) Good points though, I'll just remove it |
Adjusted in f1aed62 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for revisiting it!
Tip for your future self, in cases like this you can use phpcs:disable Rule....
and then phpcs:enable
at the end to avoid all these repetitions
🎉 This PR is included in version 3.2.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Note: This is a hotfix
This PR adjusts the nonce logic for newsletter signups. Now it will only check the nonce if reCaptcha is inactive. Technically we don't even need a nonce for logged-out forms, but I like having the little extra security to protect from bot signups.
How to test the changes in this Pull Request:
Other information: