An improper authorization issue exists in the '/api/auth/register' endpoint. The system only enforces invite codes when user registration is disabled; consequently, registration can be completed without an invite if both invites and user registration are enabled. Unauthenticated attackers can send a direct POST request omitting the invite code to create accounts, view statistics, and exhaust storage by uploading numerous files.