/

CVE-2024-58405

Severity:

HIGH RISK

(8.6)

Improper Authorization (CWE-863) in Zipline Registration

CVE-2024-58405

Deferred

Vulnerability type

Category:

Improper Authorization

CWE:

CWE-863

Impact:

Unauthorized Account Creation and Resource Exhaustion

Severity:

HIGH RISK

(8.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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/register API 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.

Sources

SourceLink
github.comgithub.com/diced/zipline/security/advisories/GHSA-j2cw-9fvc-wr4r
vulncheck.comvulncheck.com/advisories/zipline-through-3.7.9-invite-bypass-via-api-auth-register-endpoint

Frequently asked

questions

The described issue can be triggered through the registration API when the endpoint is reachable; authentication is not required.

No existing account is required. The attacker needs network access to the registration endpoint and a deployment where both user registration and invites are enabled.

Enforce the invite-code authorization check consistently on the server whenever policy requires an invitation, regardless of other registration settings.

Test authorization behavior across configuration combinations, review conditional access-control logic, and apply sensible limits to account creation and uploads.

Find out what's already
exploitable in your codebase.