Skip to content
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

Deprecate form_nonce (stage 1 of 2) #474

Merged
merged 2 commits into from
Apr 4, 2024
Merged

Deprecate form_nonce (stage 1 of 2) #474

merged 2 commits into from
Apr 4, 2024

Conversation

jace
Copy link
Member

@jace jace commented Apr 4, 2024

form_nonce is ineffective with JavaScript submits, where either the nonce is not regenerated, causing unrelated submits to be registered as dupes, or is regenerated just before submit, thereby causing dupe submits to have unique nonces which they shouldn't.

Funnel has a new mechanism that is entirely server side and depends on request fingerprinting to detect dupes (hasgeek/funnel#2002). However, it will not work while random nonce values are part of the request, so form_nonce has to be removed entirely.

This PR only disables the validator. After downstream references to form_nonce are removed, the field can also be removed.

@jace jace merged commit 8fa684a into main Apr 4, 2024
16 checks passed
@jace jace deleted the nonce-1 branch April 4, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant