🇰🇷 한글 설명
Sync-in Server 2.4.0 미만 버전에서 TOTP 인증 실패 시 비밀번호 시도 횟수가 정상적으로 업데이트되지 않는 취약점이 존재합니다. 이로 인해 공격자는 계정 잠금 없이 무차별 대입 공격을 수행하여 TOTP 코드를 알아내고, 최종적으로 MFA를 비활성화하거나 JWT 토큰을 탈취할 수 있습니다.
💡 쉬운 설명
로그인 시 2차 인증 번호를 여러 번 틀려도 계정이 잠기지 않는 결함이 있습니다. 해커가 이 허점을 이용해 인증 번호를 계속 찍어 맞추면 사용자의 보안 설정을 해제하고 계정을 탈취할 수 있습니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
Sync-in Server version < 2.4.0
⚔️ 공격 벡터
TOTP 인증 실패 시 카운터가 업데이트되지 않는 점을 악용한 무차별 대입 공격(Brute-force)
🛡️ 대응 방법
Sync-in Server를 최신 버전인 2.4.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력 결과에 2.4.0 이상의 버전 번호가 포함되어 있으면 안전합니다.
curl -s http://<target_ip>/api/app/version | grep -E '2.4.0'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
💻 영향받는 소프트웨어
Microsoft Exchange Server