Nextcloud Server is a package that handles data storage and supports application-specific tokens for authentication purposes. These tokens are granted to specific applications and can be configured by the user to not have any filesystem access. However, due to a lacking permission check, the tokens were able to change their own permissions, allowing filesystem limited tokens to grant themselves access to the filesystem.