mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Address security vulnerability that allows unauthenticated users to view server overview pages.
This commit is contained in:
@@ -3,6 +3,11 @@ This file is a running track of new features and fixes to each version of the pa
|
||||
|
||||
This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||
|
||||
## v0.5.7 (Bodacious Boreopterus)
|
||||
|
||||
### Fixed
|
||||
* **[Security Vulnerability]** — Fixed a bug in the Server Model SQL code that was causing server access verification to evaluate to true regardless of a users access permissions.
|
||||
|
||||
## v0.5.6 (Bodacious Boreopterus)
|
||||
### Added
|
||||
* Added the following languages: Estonian `et`, Dutch `nl`, Norwegian `nb` (partial), Romanian `ro`, and Russian `ru`. Interested in helping us translate the panel into more languages, or improving existing translations? Contact us on Discord and let us know.
|
||||
|
||||
@@ -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