Summary
Discovered hardcoded encryption tokens in config.js:18-19 committed to this public repository:
PASSWORD_TOKEN and AUTOSIGN_TOKEN are static and visible to anyone
These enable password decryption and authentication cookie forgery for any user.
GitHub Advisory
Full details: GHSA-h75w-8xx3-q29p
Suggested Fix
- Generate random per-instance keys
- Replace
crypto.createCipher with bcrypt/argon2
- Use HMAC with per-session nonces for auth cookies
Discovered by cenyuhan0324.
Summary
Discovered hardcoded encryption tokens in
config.js:18-19committed to this public repository:PASSWORD_TOKENandAUTOSIGN_TOKENare static and visible to anyoneThese enable password decryption and authentication cookie forgery for any user.
GitHub Advisory
Full details: GHSA-h75w-8xx3-q29p
Suggested Fix
crypto.createCipherwith bcrypt/argon2Discovered by cenyuhan0324.