8000 fix(session): replace insecure default signing key by kl7sn · Pull Request #1268 · clickvisual/clickvisual · GitHub
[go: up one dir, main page]

Skip to content

fix(session): replace insecure default signing key - #1268

Open
kl7sn wants to merge 1 commit into
clickvisual:masterfrom
kl7sn:fix/issue-1263-session-key
Open

kl7sn wants to merge 1 commit into
clickvisual:masterfrom
kl7sn:fix/issue-1263-session-key

Conversation

@kl7sn
@kl7sn kl7sn commented Oct 30, 2026
Copy link
Copy Markdown
Collaborator

Fixes #1263.

The shipped secret session signing key allows attackers to forge valid session cookies and pre-seed a session ID. When the default or empty key is configured, generate a cryptographically random 32-byte key at startup before constructing the Redis or memstore backend. Explicit deployment keys remain unchanged.

Validation:

  • go test ./internal/pkg/session
  • go test ./internal/api/apiv1/user ./internal/router/middlewares

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] Default Session Signing Key Allows Session Fixation

1 participant

0