Commit Graph
21 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
Daniel Winzen 7ae817c18f Minor optimizations 2020-02-29 16:12:10 +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 0e0fb54eae Track quota usage and allow upgrading quotas 2019-12-14 21:01:39 +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
Noah van der Aa bc4a8a4d7c Adding CSRF to file manager 2019-01-23 17:44:04 +01:00
Daniel Winzen 0fc4412404 Revert " Disabling emulated parameters" 2018-12-04 21:10:36 +01:00
teikakki 5753ca2cee Disabling emulated parameters
Emulated parameters can be vulnerable to SQL injection.
Take also a look here: https://stackoverflow.com/questions/134099/are-pdo-prepared-statements-sufficient-to-prevent-sql-injection
2018-11-28 14:26:55 +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 9eb5c2ae3c Show error message on login when account has not yet been created 2018-03-03 19:22:57 +01:00
Daniel Winzen 6b0759be73 Added admin panel + optional manual approval for new sites 2018-02-25 21:25:05 +01: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 99ccbdccfe Updated tutorial for Ubuntu 16.04 LTS compatibility 2017-11-05 10:43:44 +01:00
Daniel Winzen 9fda236ad8 Add FAQ 2017-07-11 17:43:34 +02:00
Daniel Winzen 94f0ae9cc6 Fix captcha on login page 2017-06-17 14:37:01 +02:00
Daniel Winzen e0b35fb943 Initial commit 2017-04-30 19:32:42 +02:00