Skip to content

Redis session keys unvalidated / not tenant-scoped #115

Description

@MitulShah1

Priority: P3 · Nature: hardening

Problem

session/redis.go:81-83 builds keys as prefix + sessionID with no validation of sessionID format/length. Not injection (Redis has no key-syntax injection), but an attacker-influenced sessionID can collide with another session's key if the prefix scheme isn't tenant-scoped.

Fix

Enforce an ID format (e.g. UUID) at the Session interface boundary and/or tenant-scope the key prefix.


Filed from a full-repo audit (branch main). Verified against source; baseline go vet/staticcheck/go test -race pass on the default build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowHardening / cleanuparea/sessionsecuritySecurity vulnerability or claim gap

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions