security: harden application security baseline

- Fixed SQL injection vulnerabilities with prepared statements
- Added column whitelist protection for dynamic termin updates
- Extracted iCloud credentials into protected config file
- Moved sensitive configuration files out of webroot
- Added authentication and admin checks to PVE APIs
- Added CSRF protection to write operations and APIs
- Disabled debug output in production mode
- Added centralized configuration handling
- Protected sensitive directories with access rules
- Added initial project security documentation
This commit is contained in:
2026-07-22 02:23:34 +02:00
parent 28ebf1ff12
commit d97605f801
8 changed files with 370 additions and 121 deletions
+8
View File
@@ -14,3 +14,11 @@ session_set_cookie_params([
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
// CSRF Token generieren, falls nicht vorhanden
if (empty($_SESSION['csrf_token'])) {
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
}
</||DSML||parameter>
</||DSML||invoke>
</||DSML||tool_calls>