Close the security gaps found by the application audit
Imported toolboxes could run scripts on the site origin through image data URLs, so only bitmap images are now accepted at import, display and opening. The Cards game and its fake admin login no longer turn on when NODE_ENV is missing, and the Node server now sends a CSP and the other security headers. The deployment script no longer runs files owned by the service account as root, the services cannot gain privileges through sudo, and the deployment key stays in a single workflow step with actions pinned by commit. The script and systemd units must still be reinstalled on the server after delivery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1adccb4e04
commit
7046515d20
20 changed files with 233 additions and 36 deletions
|
|
@ -6,6 +6,9 @@ ConditionPathExists=/data/webapps/private/sokko-g/nebula-cards.sqlite
|
|||
[Service]
|
||||
Type=oneshot
|
||||
User=shinuwa
|
||||
# Empêche le processus et ses enfants d'obtenir des droits supplémentaires, notamment via sudo.
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
WorkingDirectory=/data/webapps/sites/sokko-g
|
||||
Environment=NODE_ENV=production
|
||||
ExecStart=/home/shinuwa/.nvm/versions/node/v24.11.1/bin/node scripts/backup-nebula-cards.mjs scheduled /data/webapps/private/sokko-g/nebula-cards.sqlite /data/backups/sokko-g --keep 14
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@ After=network.target
|
|||
[Service]
|
||||
Type=simple
|
||||
User=shinuwa
|
||||
# Empêche le processus et ses enfants d'obtenir des droits supplémentaires, notamment via sudo.
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
WorkingDirectory=/data/webapps/sites/sokko-g
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PATH=/home/shinuwa/.nvm/versions/node/v24.11.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue