Move out ghost file to platformdata
Since /tmp is world writable this might cause privilege escalation https://forum.cloudron.io/topic/2222/impersonate-user-privilege-escalation
This commit is contained in:
@@ -32,7 +32,7 @@ exports = module.exports = {
|
||||
|
||||
NGINX_DEFAULT_CONFIG_FILE_NAME: 'default.conf',
|
||||
|
||||
GHOST_USER_FILE: '/tmp/cloudron_ghost.json',
|
||||
GHOST_USER_FILE: '/home/yellowtent/platformdata/cloudron_ghost.json',
|
||||
|
||||
DEFAULT_TOKEN_EXPIRATION: 7 * 24 * 60 * 60 * 1000, // 1 week
|
||||
|
||||
|
||||
Reference in New Issue
Block a user