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

refactor(core): Make browserId check mandatory #10120

Closed
wants to merge 1 commit into from

Conversation

netroy
Copy link
Member

@netroy netroy commented Jul 19, 2024

Summary

When we added these checks in #9057, we kept the browserId field in the JWT optional to not force logout everyone en-masse.
Now that it's been over 3 months, it's time to start enforcing this to prevent CSRF attacks on anyone who still has on old cookie (that's missing the browserId field)

PS: This breaks the old auto-login from n8n cloud dashboard. I'll delete that code as well.

Related Linear tickets, Github issues, and Community forum posts

SEC-55

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jul 19, 2024
@netroy netroy force-pushed the SEC-55-make-browserId-mandatory branch from 1dd5cf4 to e12ab2a Compare July 19, 2024 15:26
@netroy netroy force-pushed the SEC-55-make-browserId-mandatory branch from e12ab2a to 961cdfe Compare July 19, 2024 15:35
@netroy netroy marked this pull request as draft July 22, 2024 06:00
@netroy
Copy link
Member Author

netroy commented Jul 23, 2024

This is blocked until we implement a new auto-login mechanism that uses browserId

@netroy netroy closed this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant