mirror of
https://github.com/games-on-whales/wolfmanager.git
synced 2026-10-15 13:02:05 +00:00
[GH-ISSUE #28] Hardcoded Fallback Encryption Key #15
Labels
No labels
a11y
bug
enhancement
enhancement
good first issue
pull-request
question
refactor
security
shadcn
tech-debt
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolfmanager#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @salty2011 on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/games-on-whales/wolfmanager/issues/28
Summary
The application contains a hardcoded fallback encryption key, which poses a critical security risk if the required
ENCRYPTION_KEYenvironment variable is not set.File
src/lib/crypto.ts:4Issue
"your-fallback-encryption-key-min-32-chars!!") is used if theENCRYPTION_KEYenvironment variable is missing.Risk
Impact
HIGH – Complete compromise of encrypted user data.
Mitigation
ENCRYPTION_KEYis not defined.Proposed Fix
Benefits of Fixing
Tags:
security,encryption,environment-variable,high-risk,bug