All vulnerabilities

Servers and applications

GHSA-c69h-jgpw-h9cj

$_SESSION["look"] Normalization Allows Any Admin Account to Take Over the ROOT_USER Account

Severity
Medium 6.5
Published
30 Jul 2026
Last changed
30 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.9.8
Weakness
Improper authorization (CWE-285)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

web/inc/main.php normalizes missing $_SESSION["look"] to an empty string, making a !isset($_SESSION["look"]) authorization branch in web/edit/user/index.php unreachable during normal authenticated requests. A non-ROOT_USER admin can then request /edit/user/?user= and change the ROOT_USER account password.

Root cause: web/inc/main.php:140-142, runs on every request:

Since isset("") is true, later !isset($_SESSION["look"]) checks reached after this initialization evaluate to false.

Vulnerable guard: web/edit/user/index.php:25-37:

In the normal non-impersonating state, $_SESSION["look"] != "" is also false, so both branches evaluate false. A non-ROOT_USER admin can request ?user= directly, receive the edit form, and submit a password change. The POST path has no additional ownership check beyond the attacker's valid session CSRF token.

From hestiacp/hestiacp's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Hestia Control PanelServers and applications · github:hestiacp/hestiacp
  • From 1.6.0 before 1.9.8

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