Summary
Zipline's registration endpoint may create accounts without an invite code when both user registration and invites are enabled. An unauthenticated attacker could exploit this behavior to create accounts, view statistics, or consume storage by uploading files.
Affected context
The issue occurs in Zipline's /api/auth/register endpoint when both user registration and invite codes are enabled. In this configuration, the endpoint does not consistently enforce the invite-code requirement, so a registration request without a code may still succeed.
Exploit preconditions
- Attack surface: The
/api/auth/registerAPI endpoint must be reachable. - Required access: No existing account or authentication is required.
- Trigger point: A direct registration request that omits the invite code.
- Why exploitation is possible: The endpoint's authorization logic enforces invite codes only when user registration is disabled, leaving the combined configuration without the expected check.
Why this happens
The registration endpoint applies authorization checks inconsistently across configuration states. When registration and invites are both enabled, the invite requirement is not enforced, allowing account creation without the intended authorization. This is an authorization logic flaw covered by CWE-863: Incorrect Authorization.
Potential impact
- Unauthenticated users may be able to create accounts.
- Newly created accounts could access statistics available to users.
- Attackers could consume storage by uploading many files.
- Increased account and file activity could burden administrative and operational resources.
General mitigation guidance
Defensive patterns include applying authorization checks consistently for every registration configuration and requiring valid invitations whenever the policy calls for them.
- Make access decisions explicit and independent of unrelated registration settings.
- Validate invitation requirements on the server for every account-creation request.
- Reduce exposure by limiting who can reach registration endpoints and restricting account privileges by default.
- Apply appropriate quotas and resource limits to account creation and file uploads.
How teams detect issues like this
- Review registration logic for conditional branches that skip authorization checks under particular configuration combinations.
- Use static analysis and code review to identify endpoints where access decisions depend on inconsistent or incomplete configuration checks.
- Monitor for unusual account creation, repeated registration attempts, missing invite information, and elevated file-upload volume.
- Enforce policies that require server-side authorization and resource limits on account-creation and upload endpoints.

