Commit Graph
15 Commits
Author SHA1 Message Date
bigbong420 229ce3a0dc Debian 13 support, PHP 8.4/8.5, security hardening, install script
- Debian 13 (Trixie) compatibility:
  - Build uw-imap c-client from source (removed from trixie)
  - Fix OpenSSL 3 include paths for c-client
  - Split libnginx-mod-http-brotli package name
  - Add -lgomp and -std=c++17 to PHP CXXFLAGS
  - Fix Dovecot 2.4 config syntax in setup
  - Use 127.0.0.1 for DB (works in FPM chroot)

- PHP version updates:
  - Add PHP 8.5.4 and 8.4.19
  - Remove PHP 8.1 (EOL)
  - Update igbinary to master, imagick to 3.8.1, brotli to 0.18.3
  - Remove php-rar (unmaintained, incompatible with 8.4+)
  - setup.php uses DEFAULT_PHP_VERSION for FPM sockets
  - Users can switch PHP version from dashboard

- Security hardening:
  - CSRF tokens use bin2hex(random_bytes(32))
  - Admin password uses password_hash/password_verify
  - Session regeneration on login
  - All output escaped with htmlspecialchars
  - Nginx rewrite rules validated (flag whitelist, reject injection)
  - Path traversal protection in FileManager
  - SQL injection fix in password change
  - Security headers (CSP script-src:none, X-Frame-Options, etc)
  - Onion private keys encrypted at rest (libsodium)
  - SFTP password encrypted in session with expiry
  - Admin brute-force rate limiting
  - CSRF token on login form
  - Zero JavaScript - all pages work without JS
  - mt_rand replaced with random_int
  - Cookie secure flag precedence fix
  - PDO ERRMODE_EXCEPTION
  - Generic login error messages (no username enumeration)
  - FileManager rename validation

- Self-bootstrapping install.sh:
  - Auto-clones repo if run standalone (curl | bash support)
  - Interactive prompts or --non-interactive flag
  - Optional vanity .onion generation via mkp224o
  - Password generation or custom input
  - Credentials saved to /root/hosting-credentials.txt
2026-03-29 11:44:22 -04:00
danwin1210 78ba449fa3 Make scripts translatable 2023-01-22 20:02:41 +01:00
danwin1210 c81ef18f5f Add return type declarations and minor bug fixes 2023-01-21 12:14:24 +01:00
Daniel Winzen c2b010e8e6 Added PGP Two Factor Authentication (2FA) 2020-02-17 07:07:02 +01:00
Daniel Winzen e6946ad1ce Introduced new const to easily change the sites name globally 2020-01-21 21:47:51 +01:00
Daniel Winzen d7c886bb54 Added support for mail() inside chroots 2020-01-05 15:50:08 +01:00
Daniel Winzen 6b19346b20 Various optimizations 2019-11-02 19:41:05 +01:00
Daniel Winzen 851a3103be Added canonical tag and store tor/php instance responsibility in db 2019-06-20 18:53:30 +02:00
Daniel Winzen 9c5294e64e Add csrf tokens to all sensitive forms 2019-01-27 17:41:02 +01:00
Daniel Winzen 0fc4412404 Revert " Disabling emulated parameters" 2018-12-04 21:10:36 +01:00
teikakki 1fc180752f emulated params 2018-11-28 14:30:22 +00:00
Daniel Winzen 2cee59dc6f Structure changes for future features 2018-10-20 18:20:27 +02:00
Daniel Winzen 6eb068222c Refactor DB foreign keys to auto_incrementing id instead of onion
Allows moving domains into separate table at a later stage
2018-10-16 21:09:16 +02:00
Daniel Winzen fa24bb61ec Added PHP 7.2 support + minor bugfixes and performance tweaks
Note when applying this update you will have to update existing nginx vhosts to match new listening addresses (IPv6). Preferably you should update them to unix socket though and apply the changes to the tor hidden service config as well
2018-02-10 22:10:07 +01:00
Daniel Winzen e0b35fb943 Initial commit 2017-04-30 19:32:42 +02:00