Close the critical holes found in the security audit
- .htaccess: 404 for dotfiles (.git etc.), logs/dumps/archives, composer files, vendor/, documents/, archive/ - Pages::ajax: changeUserStatus, checkUser and refreshLogMonitor now require a logged-in admin or module user; the operator is logged from the session, not the request - Public worker JSON only returns worker_id and worker_name (no ntfy topic or calendar ID) - Admin: the five worker-schedule methods now redirect to login without a session Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3569539376
commit
3440188c0f
@@ -2,6 +2,12 @@
|
||||
|
||||
RewriteEngine on
|
||||
|
||||
# Never serve build/VCS/ops artefacts that live in the webroot (2026-11-18).
|
||||
# Dotfiles + .git are also blocked server-wide on test (conf block-sensitive).
|
||||
RewriteRule (^|/)\.(?!well-known(/|$)) - [R=404,L]
|
||||
RewriteRule \.(md|rst|log|7z|zip|tar|gz|sql|csv|lock|bak|old|orig|swp|env|ini|sh)$ - [R=404,NC,L]
|
||||
RewriteRule ^(composer\.json|vendor/|documents/|archive/|cgi-bin/) - [R=404,NC,L]
|
||||
|
||||
# Job ad renamed: ledigestilling.html -> negletekniker.html (2026-07-17)
|
||||
RewriteRule ^ledigestilling/ledigestilling\.html$ /ledigestilling/negletekniker.html [R=301,L]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user