CVE-2026-58271

@sync-in/server vulnerable to TOTP Brute-Force via `POST /api/app/sync/register`

Published Sep 21, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
Sync-in Server is an open-source platform for file storage, sharing, collaboration, and syncing. Prior to version 2.4.0, `POST /api/app/sync/register` accepts credentials and a TOTP code to register a desktop sync client. On a failed TOTP, `SyncClientsManager.register()` calls `updateAccesses(user, ip, false)`, which hits a freeze branch that writes `passwordAttempts` back unchanged. The counter never reaches `USER_MAX_PASSWORD_ATTEMPTS` (10) and the lockout gate never fires. A successful guess returns a `{clientId, clientToken}` pair. The token can be exchanged via `POST /api/app/sync/auth/cookie` for a full JWT. While the code is valid, the attacker can also call `POST /api/auth/2fa/disable` to permanently remove MFA. Version 2.4.0 patches the issue.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to repeatedly send registration requests with a guessed time‑based OTP; the lockout mechanism never activates due to an oversight that prevents the attempt counter from incrementing. A successful OTP guess grants the attacker a client ID and token pair. The token can be exchanged for a full JWT, and the attacker can then call an endpoint to permanently disable two‑factor authentication for the user, removing an important security boundary and enabling ongoing session hijacking or data exfiltration.

Affected Systems

Sync‑In team’s open‑source server platform is affected for all releases older than version 2.4.0. Users running those versions with the registration endpoint exposed are at risk.

Risk and Exploitability

The CVSS score of 6.8 indicates that the issue is a moderate‑severity flaw that could allow attackers to gain privileged access. No EPSS score is provided, and the vulnerability is not listed in the CISA KEV catalogue, so there is no evidence of active exploitation at this time. The attack vector is inferred to be network‑based: an attacker who can reach the registration API can launch brute‑force attempts against a user’s OTP. Once an OTP is discovered, the attacker can obtain a session token and disable MFA, thereby achieving long‑term compromise of the target account.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Sync‑In server to version 2.4.0 or later, where the OTP counter increment and lockout logic have been corrected.
  • Restrict the POST /api/app/sync/register endpoint to trusted IP ranges or apply application‑level rate limiting to reduce brute‑force feasibility.
  • Track authentication failures in logs and, if repeated OTP attempts are detected, disable the affected account or enforce MFA re‑enrollment.

Generated by OpenCVE AI on September 21, 2026 at 22:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-274f-6w77-8qm9 @sync-in/server vulnerable to TOTP Brute-Force via `POST /api/app/sync/register`
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sync-in
Sync-in server
Vendors & Products Sync-in
Sync-in server
Type Values Removed Values Added
Description Sync-in Server is an open-source platform for file storage, sharing, collaboration, and syncing. Prior to version 2.4.0, `POST /api/app/sync/register` accepts credentials and a TOTP code to register a desktop sync client. On a failed TOTP, `SyncClientsManager.register()` calls `updateAccesses(user, ip, false)`, which hits a freeze branch that writes `passwordAttempts` back unchanged. The counter never reaches `USER_MAX_PASSWORD_ATTEMPTS` (10) and the lockout gate never fires. A successful guess returns a `{clientId, clientToken}` pair. The token can be exchanged via `POST /api/app/sync/auth/cookie` for a full JWT. While the code is valid, the attacker can also call `POST /api/auth/2fa/disable` to permanently remove MFA. Version 2.4.0 patches the issue.
Title @sync-in/server vulnerable to TOTP Brute-Force via `POST /api/app/sync/register`
Weaknesses CWE-307
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 24, 2026, 10:36 PM
Reserved
Jun 29, 2026, 9:54 PM
Status
Deferred
Published
Sep 21, 2026, 8:17 PM
Modified
Sep 24, 2026, 11:17 PM