MEDIUM: JWT_SECRET has a hardcoded default fallback in source code #8
Labels
No labels
blocked:needs-human
blocked:verify-failed
bug
feature-request
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/subvault#8
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?
Severity: Medium
Location
backend/src/auth.tsline 6Description
The JWT secret has a weak hardcoded fallback when the
JWT_SECRETenvironment variable is not set:Additionally, the current
backend/.envfile has:JWT_SECRET=subvault-secret-key-change-in-production— which still contains the placeholder message and was never changed.Impact
Suggested Fix
openssl rand -hex 64)