All vulnerabilities

Servers and applications

GHSA-2hxh-jhww-923x

Demoted admin retains full admin execution on redirect-only handlers via stale session role (privilege retention)

Severity
Medium
Published
15 Sept 2026
Last changed
15 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.10.5
Weakness
Incorrect authorization (CWE-863)
Sources
Project advisories (GitHub)

Description

Hi HestiaCP team,

Please find below a security report for an authorization issue in the role-management flow. I've kept it to the required format (description, services involved, tested version, reproduction steps, findings, and expected results).

An administrator who is demoted to ROLE=user retains full admin execution on the redirect-only mutators (/delete/user/, /suspend/user/, /bulk/user/, /restart/service/) for as long as they hold the panel session that predates the demotion. These handlers authorize on the session-cached $_SESSION["userContext"], which is written only at login and whose per-page refresh is dead code. The demotion itself (v-change-user-role) rewrites the user's conf file but never invalidates active sessions, so the stale userContext === "admin" value survives indefinitely — until the demoted admin logs out and logs back in.

  • CWE-863 — Incorrect Authorization
From hestiacp/hestiacp's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Hestia Control PanelServers and applications · github:hestiacp/hestiacp
  • Every version before 1.10.5

About Hestia Control Panel

Hestia Control Panel | A lightweight and powerful control panel for the modern web.

From its GitHub repository.
GitHub stars
4,578GitHub, 15 Nov 2026
Forks
964GitHub, 15 Nov 2026
Latest release
1.10.7GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
License
GPL-3.0GitHub
First published on GitHub
7 Nov 2018GitHub

References