Pterodactyl's improper JWT scoping allows subuser to upload files when not explicitly granted `file.create` permissions
Description
Pterodactyl is a free, open-source game server management panel. Prior to Panel version 1.12.3 and Wings version 1.12.2, the Wings /upload/file endpoint accepted any valid panel-signed JWT that contained server_uuid, user_uuid, and unique_id claims without checking the token's intended purpose; because the Panel issues JWTs carrying those same claims for lower-privilege operations such as WebSocket authentication and file-download links, an authenticated subuser could reuse one of those tokens (for example a WebSocket token obtained with only the websocket.connect permission) by replaying it against /upload/file to write arbitrary files to the same server, despite never being granted the file.create permission. This issue is fixed in Panel version 1.12.3 and Wings version 1.12.2.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pterodactyl/panelPackagist | < 1.12.3 | 1.12.3 |
github.com/pterodactyl/wingsGo | < 1.12.2 | 1.12.2 |
Affected products
1- Range: <1.12.3
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-8r6w-3qq5-4p4rghsaADVISORY
- github.com/pterodactyl/panel/commit/7ffcd636310bb72b54bac3280d2a15e727feded7ghsax_refsource_MISCWEB
- github.com/pterodactyl/panel/pull/5636ghsax_refsource_MISCWEB
- github.com/pterodactyl/panel/security/advisories/GHSA-8r6w-3qq5-4p4rghsax_refsource_CONFIRMWEB
- github.com/pterodactyl/wings/commit/d0ddc80844479302abdaf9654de3bacd511c0f5cghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.