mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Address security vulnerability that allows unauthenticated users to view server overview pages.
This commit is contained in:
@@ -172,8 +172,9 @@ class Server extends Model
|
||||
|
||||
$query = self::select('servers.*', 'services.file as a_serviceFile')
|
||||
->join('services', 'services.id', '=', 'servers.service')
|
||||
->where('uuidShort', $uuid)
|
||||
->orWhere('uuid', $uuid);
|
||||
->where(function ($q) use ($uuid) {
|
||||
$q->where('uuidShort', $uuid)->orWhere('uuid', $uuid);
|
||||
});
|
||||
|
||||
if (self::$user->root_admin !== 1) {
|
||||
$query->whereIn('servers.id', Subuser::accessServers());
|
||||
|
||||
Reference in New Issue
Block a user