Skip to content

Commit f824eb9

Browse files
committed
use secure uuid.v4 as session cookie secret
uuid.v1 is considered insecure and thus the secret could be bruteforced. Instead this will use uuid.v4 which includes proper randomness
1 parent 28cde6b commit f824eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/create-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function initAuthentication (app, argv) {
302302
function sessionSettings (secureCookies, host) {
303303
const sessionSettings = {
304304
name: 'nssidp.sid',
305-
secret: uuid.v1(),
305+
secret: uuid.v4(),
306306
saveUninitialized: false,
307307
resave: false,
308308
rolling: true,

0 commit comments

Comments
 (0)