20 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 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 6b19346b20 Various optimizations 2019-11-02 19:41:05 +01:00
Daniel Winzen ae925a2000 Allow changing instances + add nginx_rewrites table + optimizations 2019-09-22 21:24:27 +02:00
Daniel Winzen 2f97e826d4 Make only enabled onions clickable in admin + equal instance usage 2019-07-20 14:21:00 +02: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 678ad279ef Optimized admin panel 2019-05-11 22:09:49 +02:00
Daniel Winzen 84dff64e9e Fixed approval SQL query 2019-04-06 21:50:28 +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 7ab640ea4b emulated params 2018-11-28 14:28:36 +00:00
Daniel Winzen 58b5efb96c Added suspend hidden service feature + disabled php7.0 for new accounts 2018-10-28 08:48:30 +01:00
Daniel Winzen d5d7078776 Allow editing hidden service options 2018-10-22 21:45:08 +02: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 47b9b6e3a6 Fixed db query 2018-02-26 16:37:35 +01:00
Daniel Winzen e8f8f42a24 Fix db query 2018-02-25 21:53:00 +01:00
Daniel Winzen 6b0759be73 Added admin panel + optional manual approval for new sites 2018-02-25 21:25:05 +01:00