Skip to content

Security: Re-enable OAuth CSRF state validation#52

Open
bellisabell wants to merge 1 commit intomainfrom
bell/fix-oauth-csrf
Open

Security: Re-enable OAuth CSRF state validation#52
bellisabell wants to merge 1 commit intomainfrom
bell/fix-oauth-csrf

Conversation

@bellisabell
Copy link
Member

Summary

Remove provider_ignores_state: true from Google OAuth configuration in config/initializers/devise.rb.

Problem

The provider_ignores_state: true option disables CSRF state validation in OAuth flows, making the application vulnerable to cross-site request forgery attacks during authentication.

Solution

Remove the provider_ignores_state: true parameter, allowing the default behavior where the OAuth library generates and validates state parameters to prevent CSRF attacks.

Closes #15

Remove provider_ignores_state: true from Google OAuth configuration.
This re-enables CSRF state validation which protects against cross-site
request forgery attacks during the OAuth flow.

Closes #15
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.

Security: OAuth CSRF protection disabled (provider_ignores_state: true)

2 participants