GeezerVison is showing github.com — v3.11.4: App Store installs under UMask=0077 (issue #36), PHP2Shell p… · BrowserlessAPI/VortexPanel@28d380e
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: RELEASE_NOTES_v3.11.3.md -48Lines changed: 0 additions & 48 deletions Collapse file Copy file name to clipboard +95Lines changed: 95 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# VortexPanel 3.11.4 | | 2 | + | | 3 | +## Fixed: App Store installs under the panel's private umask (issue #36) | | 4 | + | | 5 | +The panel service runs with `UMask=0077` so that its own files stay private. Since | | 6 | +3.11.0 the panel installs software itself, and the install scripts inherited that umask: | | 7 | +build folders and the configuration files the scripts wrote could only be read by root. | | 8 | + | | 9 | +- **Redis, MySQL, MongoDB and BIND9 failed to install.** Redis reported `Permission | | 10 | + denied` (status 203/EXEC) and MySQL "initializing the data folder failed". All of | | 11 | + these now install. | | 12 | +- **Installs that succeeded were damaged.** PHP could not be run by `www-data` or site | | 13 | + users, and `php.ini`, the module `.ini` files and the FPM pool were readable only by | | 14 | + root, so PHP run as a site user (cron jobs, Composer, hosting accounts) silently ran | | 15 | + without its settings. ClamAV, BIND9, OpenLiteSpeed and Fail2ban files were affected the | | 16 | + same way. | | 17 | +- **MariaDB failed after a failed MySQL attempt.** MySQL's configuration and a half-made | | 18 | + `/var/lib/mysql` were left behind, and MariaDB stopped at MySQL-only settings | | 19 | + (`mysqlx-bind-address`) or refused the folder as "MySQL 8 data". | | 20 | + | | 21 | +What changed: | | 22 | +- Install, update and removal scripts run with the usual 022 umask. Build folders get | | 23 | + explicit modes; the panel's `.vortex` metadata stays root-only. | | 24 | +- **One-time repair at the first panel start after the update.** It reopens build folders | | 25 | + and the configuration files that install scripts wrote. Only files that belong to root, | | 26 | + have no group or other rights at all and were written after the first VortexPanel build | | 27 | + was installed are changed; keys, passwords, certificates, logs and caches are never | | 28 | + touched. The list of changes is kept in `data/softs/permissions-repaired-1.json`. | | 29 | +- Before a fresh MySQL or MariaDB install, when neither is installed, the other server's | | 30 | + VortexPanel configuration and a data folder holding only a failed first start are moved | | 31 | + aside (never deleted). Future MySQL and MariaDB builds also remove a data folder they | | 32 | + created themselves when its initialization fails. | | 33 | + | | 34 | +## Fixed: ClamAV scanner did not start under systemd | | 35 | + | | 36 | +The two ClamAV services shared `/run/clamav` through systemd's `RuntimeDirectory=`, and | | 37 | +systemd handed the folder back to root each time either service started. `clamd` could not | | 38 | +create its socket and the install was rolled back ("failed its health check"). The units now | | 39 | +create the folder for the `clamav` user before each start. Fixed builds of ClamAV 1.5.4 and | | 40 | +1.4.6 follow through the build pipeline. | | 41 | + | | 42 | +## Build pipeline: every build is tested like a real server | | 43 | + | | 44 | +Builds are installed, smoke-tested, restarted and uninstalled in a container that runs systemd | | 45 | +as init, with the panel service's 0077 umask. Before, the test ran without systemd and with the | | 46 | +usual umask, which is how both bugs above passed. ClamAV's smoke test also starts the real | | 47 | +scanner service. | | 48 | + | | 49 | +## Fixed: PHP settings could not be saved for VortexPanel PHP builds | | 50 | + | | 51 | +The configuration test ran `php-fpm -t` without the service's configuration file, failed | | 52 | +for every VortexPanel PHP build, and every change on the PHP settings page was rolled | | 53 | +back. The test now uses the same files as the PHP-FPM service. | | 54 | + | | 55 | +## Security: PHP2Shell (CVE-2026-109618, CVE-2026-109619) | | 56 | + | | 57 | +Unauthenticated remote code execution in the PHP runtime, exploited since October 2026. | | 58 | +The VortexPanel PHP builds 8.5.12, 8.4.27, 8.3.36 and 8.2.35 (published 4 November as | | 59 | +security updates) carry the fix. PHP 8.1 has no official fix. | | 60 | + | | 61 | +- **PHP > Settings > PHP2Shell** shows every PHP on the server (VortexPanel builds, | | 62 | + operating system packages, Remi, LiteSpeed lsphp) and whether it has the fix. | | 63 | +- **Protection, on by default:** `session.upload_progress.enabled = Off` in every PHP | | 64 | + version and every PHP-FPM pool (also Hosting Module accounts), set where websites cannot | | 65 | + turn it back on, and for Apache mod_php. PHP recommends this while patching and after it, | | 66 | + because CVE-2026-115560 has no fix yet. Only upload progress bars stop working. | | 67 | + New PHP versions get it when they are installed. | | 68 | +- **System Hardening 1.2.0:** the Integrity check reports PHP versions without the fix | | 69 | + and the published traces of the attack (log patterns, exploit markers, dropped files, | | 70 | + SSH keys of the web user, a hidden sshd in web server log folders, the kernel modules | | 71 | + used for the root exploit that follows). | | 72 | + | | 73 | +## System Hardening 1.2.0: web server check | | 74 | + | | 75 | +The Integrity check has a new **Web servers** section for Apache, nginx, OpenLiteSpeed and | | 76 | +Caddy: | | 77 | +- **VortexPanel builds** behind a security release, from the signed catalog and a table of | | 78 | + minimum safe versions: Apache 2.4.71 (CVE-2026-119618, HTTP/2 remote code execution, | | 79 | + critical when HTTP/2 is on), nginx 1.31.7 and 1.30.6 (October 2026 fixes). Versions whose | | 80 | + track no longer gets fixes are reported too. | | 81 | +- **Operating system packages** with a security update waiting in the package manager. For | | 82 | + Apache with HTTP/2 on, it explains the distribution backport and the `Protocols http/1.1` | | 83 | + workaround. | | 84 | +- **Known flaws without a fix:** OpenLiteSpeed CVE-2026-119559 (all versions up to 1.9.4). A | | 85 | + site that requires client certificates can be reached without one over HTTP/3; it is | | 86 | + reported as high only when a site requires client certificates and HTTP/3 is on. | | 87 | +- Fixed: the software build check reported files that a package ships as hard links (BIND's | | 88 | + `tsig-keygen`, `named-compilezone`) as "not part of" the build. References cached by | | 89 | + 1.1.0 are rebuilt. | | 90 | + | | 91 | +## Upgrade | | 92 | + | | 93 | +Panels on 3.11.3: **Settings > Update**, then **Apps > System Hardening > Update to 1.2.0**. | | 94 | +If an App Store install failed with "Permission denied" or "initializing the data folder | | 95 | +failed", install it again after the update. |
Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -3.11.3 | | 1 | +3.11.4 |
Collapse file Copy file name to clipboardExpand all lines: app.py +15Lines changed: 15 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -270,6 +270,21 @@ def _ensure_task_timers(): | 270 | 270 | from panel.tasks import install_timers | 271 | 271 | for p in install_timers(): | 272 | 272 | print('[VortexPanel] task timers:', p) | | 273 | + # one time after the update: builds installed under the 0077 umask (issue #36) | | 274 | + try: | | 275 | + from panel import softs as _softs | | 276 | + fixed = _softs.repair_permissions_once() | | 277 | + if fixed: | | 278 | + print(f'[VortexPanel] permissions repaired on {len(fixed)} build files and folders') | | 279 | + except Exception as e: # noqa: BLE001 | | 280 | + print('[VortexPanel] permission repair failed:', e) | | 281 | + # PHP2Shell: keep upload progress off in every PHP and pool (idempotent: | | 282 | + # changes and reloads only what is missing, e.g. a pool added since) | | 283 | + try: | | 284 | + from panel import php2shell as _p2s | | 285 | + _changed, _msgs = _p2s.protect_if_enabled(lambda m: print('[VortexPanel]', m)) | | 286 | + except Exception as e: # noqa: BLE001 | | 287 | + print('[VortexPanel] PHP2Shell protection not applied:', e) | 273 | 288 | except OSError: | 274 | 289 | pass # another worker is doing it | 275 | 290 | except Exception as e: | |
Collapse file Copy file name to clipboardExpand all lines: panel/apps_bundle/sys-harden/plugin.json +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | "id": "sys-harden", | 3 | 3 | "kind": "app", | 4 | 4 | "name": "System Hardening", | 5 | | - "version": "1.1.0", | | 5 | + "version": "1.2.0", | 6 | 6 | "order": 30, | 7 | 7 | "category": "Security", | 8 | 8 | "icon": "lock", | 9 | 9 | "color": "#7c3aed", | 10 | 10 | "summary": "Tamper protection for users, SSH, cron, services and system files, an integrity check against trusted sources, a malware process guard, and a security compliance check.", | 11 | | - "description": "Watches the places attackers use to keep access to a server: user accounts, SSH keys, cron jobs, systemd services, shell start-up files, the dynamic linker, login libraries and system binaries. Each area can be monitored (alert on any change, also a replacement that keeps the old size and date) or locked against changes. A daily integrity check compares the panel with its signed release, Apps and VortexPanel software builds with the download server, and SSH, sudo, PAM and every running program with the package manager, and looks for known backdoors such as CWPdoor and Ebury. A process guard finds miners and programs running from temporary folders, a compliance check scores the server against hardening best practice with one-click fixes, and the log audit lists sign-ins, sudo use and account changes.", | | 11 | + "description": "Watches the places attackers use to keep access to a server: user accounts, SSH keys, cron jobs, systemd services, shell start-up files, the dynamic linker, login libraries and system binaries. Each area can be monitored (alert on any change, also a replacement that keeps the old size and date) or locked against changes. A daily integrity check compares the panel with its signed release, Apps and VortexPanel software builds with the download server, and SSH, sudo, PAM and every running program with the package manager, and looks for known backdoors such as CWPdoor and Ebury, for PHP versions without the PHP2Shell fix and traces of that attack, and for Apache, nginx, OpenLiteSpeed and Caddy versions that miss a security fix. A process guard finds miners and programs running from temporary folders, a compliance check scores the server against hardening best practice with one-click fixes, and the log audit lists sign-ins, sudo use and account changes.", | 12 | 12 | "features": [ | 13 | 13 | "User, SSH, cron, service, login library and start-up file protection", | 14 | 14 | "Monitor or lock mode per area", | 15 | 15 | "Pause a lock for maintenance", | 16 | 16 | "Integrity check against the signed release, the download server and the package manager", | 17 | 17 | "Known backdoor checks (CWPdoor, Ebury, forced preloading)", | | 18 | + "PHP2Shell check: unpatched PHP versions and attack traces", | | 19 | + "Web server check: Apache, nginx, OpenLiteSpeed and Caddy behind a security fix, and known flaws without a fix", | 18 | 20 | "Restore changed panel files from the signed release", | 19 | 21 | "Process guard (miners, temp-folder binaries, reverse shells)", | 20 | 22 | "Compliance check with one-click fixes", | | 46 | 48 | ], | 47 | 49 | "styles": [ | 48 | 50 | "static/app.css" | 49 | | - ] | | 51 | + ], | | 52 | + "changes": "PHP2Shell (CVE-2026-109618/109619): the Integrity check reports PHP versions without the fix and the published traces of the attack. New Web servers section: Apache (CVE-2026-119618, HTTP/2), nginx, OpenLiteSpeed (CVE-2026-119559, no fix yet) and Caddy versions behind a security fix, for VortexPanel builds and operating system packages." | 50 | 53 | } |
Collapse file Copy file name to clipboardExpand all lines: panel/apps_bundle/sys-harden/static/app.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -69,6 +69,7 @@ function vpaSysHarden() { | 69 | 69 | venv: 'Reinstall the panel packages: /opt/vortexpanel/venv/bin/pip install --force-reinstall -r /opt/vortexpanel/requirements.txt, then restart the panel.', | 70 | 70 | builds: 'Reinstall the software from the App Store (or Roll back to the previous version) to put back the VortexPanel build, then restart its service.', | 71 | 71 | packages: 'Reinstall the package shown next to each file. A changed sshd, sudo or PAM module usually means the server was taken over: change all passwords and SSH keys after cleaning, and consider rebuilding the server.', | | 72 | + webservers: 'Update the web server in the App Store (VortexPanel builds) or install the operating system updates (system packages). For a flaw without a fix, apply the setting shown next to it until the vendor releases one.', | 72 | 73 | backdoors: 'Treat the server as compromised: disconnect it from other servers, back up your data, change every password and SSH key, and rebuild it from a clean system if you can.', | 73 | 74 | }[s.id] || ''; | 74 | 75 | }, | |
|