ZTNETに認可不備の脆弱性、一般ユーザーが他人のアカウントを無効化可能
Summary
ZTNETには、認証済みの一般ユーザーが任意のアカウントを恒久的に無効化できる脆弱性があります。0.8.0より前のバージョンが影響を受け、管理者アカウントも対象になります。修正版は0.8.0で、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
ZTNETには、認証済みの一般ユーザーが任意のアカウントを恒久的に無効化できる脆弱性があります。0.8.0より前のバージョンが影響を受け、管理者アカウントも対象になります。修正版は0.8.0で、最新の情報を確認してください。
Original description The description as published by the source.
ZTNET is a ZeroTier web UI for private controllers with multiuser and organization support. Prior to 0.8.0, any authenticated low-privilege user can permanently deactivate another account, including an administrator, through POST /api/auth/user/invalidateUser. In src/pages/api/auth/user/invalidateUser.ts, getServerSession checks only that a session exists and does not compare session.user.id with the client-supplied userId. Supplying a victim's userId and a deviceId for which no matching pair exists in UserDevice makes the handler set the target account's isActive to false. Login is then refused by src/server/auth.ts with account-expired. An attacker needs only a normal authenticated account and the victim's user ID, which may be obtainable from member lists, UI responses, logs, or other application metadata. This can lock administrators out, disrupt organization management, and deny access to any targeted user. This issue is fixed in version 0.8.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com