- Reference
- HI-OP-2026-9HWE-02
- Severity
- High
- CVSS
-
4.0 8.7
AV:N/AC:L/ AT:N/ PR:L/ UI:N/ VC:H/ VI:H/ VA:H/ SC:N/ SI:N/ SA:N 3.1 8.8AV:N/AC:L/ PR:L/ UI:N/ S:U/ C:H/ I:H/ A:H - Where
- app/Http/Controllers/ProfileController.php, line 42
- Who can do this
- Any logged-in user
- Retest
- Fixed
Any user can make themselves an administrator through their profile
The profile form saves everything that is sent, including the field that decides whether someone is an administrator.
Evidence
// app/Http/Controllers/ProfileController.php, line 42
public function update(Request $request)
{
$request->user()->update($request->all());
}
Impact
A regular user can manage every account, all data and all settings of the platform. From outside you only find this by luck. In the code it is right there.
Fix
app/Http/Controllers/ProfileController.php