Description
Artalk through 2.10.1 contains an authentication bypass vulnerability that allows remote attackers to take over administrator accounts by social login with unverified emails. Attackers can register a provider account with the administrator's email, sign in via OAuth callback, then call /api/v2/auth/merge to inherit administrator rights.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ArtalkJS | Artalk | 0 ≤2.10.1 | — |
References
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/internal/auth/social_register.go#L12-L48
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/server/handler/auth_merge_apply.go#L60-L82
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/server/handler/auth_social_login.go#L66-L114
- https://www.vulncheck.com/advisories/artalk-through-2.10.1-admin-account-takeover-via-social-login-and-auth-merge