Skip to content

SUM-SEC-19 [P2][19/20][Low] Harden session cookie attributes #83

Description

@CHINMAYVIVEK

ID: SUM-SEC-19
Wave: P2
Severity: Low
Labels: security, cookies, P2, low
Branch: fix/SUM-SEC-19-session-cookie-hardening
Languages: Go

Summary

Session cookie is HttpOnly + SameSite=Lax (good). Residual hardening: __Host- prefix, optional SameSite=Strict where UX allows, explicit Secure policy from SUM-SEC-15.

Acceptance criteria

  • Document / optionally enable __Host-sumeru_session when HTTPS + path /
  • Evaluate Strict for session vs Lax for login UX; implement if product accepts
  • No regression on login/logout cookie clear

Files to check / change

  • sumeru/core/server/web/auth_session.go (buildSessionCookie)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions